Re: pg_controldata doesn't report 64/32bit?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: "Josh Berkus" <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_controldata doesn't report 64/32bit?
Date: 2007-12-08 07:37:52
Message-ID: 5014.1197099472@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> Argh, As soon as I sent it I realized even that's not right. The
> alignments of our datums is specified by pg_type and doesn't vary by
> platform. There has been some thought of making 8-byte data types like
> bigint pass-by-value on 64-bit machines in which case we would want to
> put that boolean flag in the control file as well.

And that's *still* not right, because whether a type is pass-by-value
has again got exactly 0 to do with what the bits look like on disk.

The only 32-vs-64-bit difference that has any impact on the on-disk
layout is MAXALIGN, which tends to be different in the two cases
(though there are exceptions).

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-12-08 07:46:21 Re: pg_controldata doesn't report 64/32bit?
Previous Message Joshua D. Drake 2007-12-08 07:02:35 Re: pg_controldata doesn't report 64/32bit?