From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Cristian Cruz <danielcristian@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: ISBN: dump from 64bits and restore on 32 bits fail, Datum?
Date: Wed, 10 Aug 2011 18:58:49 -0400
Message-ID: <8656.1313017129@sss.pgh.pa.us> (raw)
In-Reply-To: <CACffM9F-YyRYDAxPz3p4EevuiJE3hA1nsOo=Fc=ogOKeE4piEw@mail.gmail.com>
References: <CACffM9F-YyRYDAxPz3p4EevuiJE3hA1nsOo=Fc=ogOKeE4piEw@mail.gmail.com>
Daniel Cristian Cruz <danielcristian@gmail.com> writes:
> I'm in a project where there is one development server with 32bits
> architecture and all the others are 64 bits.
> The server where I generate the base models (in sense of version) is a 64
> bit. Dump and restore from this machine to all others 64bits development
> servers works well. When I try to restore it in the 32 bits server, it
> returns the following errors:
> [pg9@server ~]$ createdb isbn -T template0
> [pg9@server ~]$ pg_restore -d isbn /tmp/isbn.backup
> *ERROR: internal size 8 is invalid for passed-by-value type*
This isn't a bug ... you need to load the appropriate version of
contrib/isn for that server. Admittedly, pg_dump doesn't make that
terribly easy (it will work a lot better in 9.1 with the extensions
infrastructure). In existing releases the best advice is to load
the .sql file for the contrib module, then source the dump, ignoring
the object-already-exists errors you get for the module's objects.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, danielcristian@gmail.com
Subject: Re: ISBN: dump from 64bits and restore on 32 bits fail, Datum?
In-Reply-To: <8656.1313017129@sss.pgh.pa.us>
References: <CACffM9F-YyRYDAxPz3p4EevuiJE3hA1nsOo=Fc=ogOKeE4piEw@mail.gmail.com> <8656.1313017129@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox