Thread: Portability of pgsql database files.

Portability of pgsql database files.

From
"David M. Lee"
Date:
I have a system that is dual bootable for both i686 and x86_64.  Would
there be any issues using the PostgreSQL database files generated for
i686 on x86_64, or vice versa?

Thanks!
dave
<><

Re: Portability of pgsql database files.

From
Bruce Momjian
Date:
David M. Lee wrote:
> I have a system that is dual bootable for both i686 and x86_64.  Would
> there be any issues using the PostgreSQL database files generated for
> i686 on x86_64, or vice versa?

Uh, if the padding is the same, it would work, but we never test such
things.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Re: Portability of pgsql database files.

From
Tom Lane
Date:
"David M. Lee" <dmlee@Crossroads.com> writes:
> I have a system that is dual bootable for both i686 and x86_64.  Would
> there be any issues using the PostgreSQL database files generated for
> i686 on x86_64, or vice versa?

You'd probably have problems with the different data alignment rules for
the two architectures (I'm supposing MAXALIGN is different, though
perhaps it is not?).

            regards, tom lane