Re: GIN function of pageinspect has inconsistency data type. - Mailing list pgsql-hackers

From Sawada Masahiko
Subject Re: GIN function of pageinspect has inconsistency data type.
Date
Msg-id CAD21AoBcr6G+5wH7-K_mACoeYG3Bq5=SkWoasJbX2KNK=TxCZA@mail.gmail.com
Whole thread Raw
In response to Re: GIN function of pageinspect has inconsistency data type.  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-hackers
On Wed, Jun 17, 2015 at 4:11 PM, Jim Nasby <Jim.Nasby@bluetreble.com> wrote:
> On 6/16/15 8:26 AM, Sawada Masahiko wrote:
>>
>> I noticed while using gin function of pageinspect that there are some
>> inconsistency data types.
>> For example, data type of GinMetaPageData.head, and tail  is
>> BlockNumber, i.g, uint32.
>> But in ginfunc.c, we get that value as int64.
>
>
> You can't put a uint32 into a signed int32 (which is what the SQL int is).
> That's why it's returning a bigint.

I understood why it's returning a bigint.
Thanks!

Regards,

--
Sawada Masahiko



pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Is it possible to have a "fast-write" Index?
Next
From: Robert Haas
Date:
Subject: Re: Time to get rid of PQnoPasswordSupplied?