Re: GIN improvements part 1: additional information

From: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
To: Antonin Houska <antonin(dot)houska(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: GIN improvements part 1: additional information
Date: 2013-07-01 10:29:16
Message-ID: CAPpHfdvEWwDoVirLtbOTjLkBXsCgmp49K9TAWJCu+ato47uuzQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jun 27, 2013 at 6:20 PM, Antonin Houska <antonin(dot)houska(at)gmail(dot)com>wrote:

> On 06/25/2013 12:03 AM, Alexander Korotkov wrote:
>
>>
>>
>> New revision of patch is attached. Now it includes some docs.
>>
>>
>>
> Hi,
> I was curious about the new layout of the data page, so I spent a while
> looking into the code.
> It's interesting, but I suspect 2 things are not o.k.:
>
> * gindatapage.c:**dataIsEnoughSpace() - 'i++' in the for loop should
> probably be 'j++', otherwise it loops forever
>
> * gin_private.h:**ginDataPageLeafRead() - fetch_att() is used to retrieve
> the additional info, but per the definition and comments in tupmacs.h it
> expects aligned pointer.
>
> * gindatapage.c:**ginCheckPlaceToDataPageLeaf() - comment "if leaf data
> page" should probably be "on a leaf data page" or so.

Hi!

Thanks for pointing these.

------
With best regards,
Alexander Korotkov.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2013-07-01 10:49:24 Re: [PATCH] add --progress option to pgbench (submission 3)
Previous Message Alexander Korotkov 2013-07-01 10:28:07 Re: GIN improvements part 1: additional information