Re: GIN function of pageinspect has inconsistency data type.

From: Sawada Masahiko <sawada(dot)mshk(at)gmail(dot)com>
To: Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: GIN function of pageinspect has inconsistency data type.
Date: 2015-06-19 13:51:42
Message-ID: CAD21AoBcr6G+5wH7-K_mACoeYG3Bq5=SkWoasJbX2KNK=TxCZA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jun 17, 2015 at 4:11 PM, Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2015-06-19 14:05:21 Re: Time to get rid of PQnoPasswordSupplied?
Previous Message Merlin Moncure 2015-06-19 13:37:46 Re: Is it possible to have a "fast-write" Index?