Re: pg_class.relpages/allvisible probably shouldn't be a int4 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_class.relpages/allvisible probably shouldn't be a int4
Date
Msg-id 28830.1399667869@sss.pgh.pa.us
Whole thread Raw
In response to pg_class.relpages/allvisible probably shouldn't be a int4  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: pg_class.relpages/allvisible probably shouldn't be a int4
List pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> That's nothing for 9.4 anymore, but shouldn't we make pg_class.relpages
> a int8 (sounds slightly better than float to me) or somesuch?

No; those are really BlockNumbers, and have always been.  float4 would
lose information and float8 or int8 would waste space.  If we had an
unsigned int type it'd be better.  I suppose we could declare them as OID,
but that would probably confuse people no end.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Weird behaviour with the new MOVE clause of ALTER TABLESPACE
Next
From: Tomas Vondra
Date:
Subject: Re: Sending out a request for more buildfarm animals?