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

From Jim Nasby
Subject Re: GIN function of pageinspect has inconsistency data type.
Date
Msg-id 5581D464.209@BlueTreble.com
Whole thread Raw
In response to GIN function of pageinspect has inconsistency data type.  (Sawada Masahiko <sawada.mshk@gmail.com>)
Responses Re: GIN function of pageinspect has inconsistency data type.
List pgsql-hackers
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.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Data in Trouble? Get it in Treble! http://BlueTreble.com



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 9.5 make world failing due to sgml tools missing
Next
From: Peter Eisentraut
Date:
Subject: Re: last_analyze/last_vacuum not being updated