Re: Small patch for GiST: move childoffnum to child

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Small patch for GiST: move childoffnum to child
Дата
Msg-id 4E20080C.7040806@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Small patch for GiST: move childoffnum to child  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: Small patch for GiST: move childoffnum to child  (Alexander Korotkov <aekorotkov@gmail.com>)
Список pgsql-hackers
On 13.07.2011 22:04, Heikki Linnakangas wrote:
> On 13.07.2011 21:56, Alexander Korotkov wrote:
>> Thank you very much for detail explanation. But this line of modified
>> patch
>> seems strange for me:
>> *newchildoffnum = blkno;
>> I believe it should be:
>> *newchildoffnum = i;
>
> Yes, you're right. It's scary that it worked during testing anyway.
> Maybe the resulting tree was indeed broken but it didn't affect the
> subsequent inserts so I didn't notice.

Ok, committed this now. I decided to rename the childoffnum field to 
"downlinkoffnum". I figured it'd be dangerous that the field means 
something subtly different in different versions, if we need to 
backpatch bug fixes that use that field.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: Patch Review: Collect frequency statistics and selectivity estimation for arrays
Следующее
От: Alexander Korotkov
Дата:
Сообщение: Re: Small patch for GiST: move childoffnum to child