Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id EBECFB5DBDA for ; Wed, 10 Aug 2011 19:58:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 09996-05 for ; Wed, 10 Aug 2011 22:58:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id D09EFB5DBD6 for ; Wed, 10 Aug 2011 19:58:51 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p7AMwnHl008657; Wed, 10 Aug 2011 18:58:49 -0400 (EDT) To: Daniel Cristian Cruz cc: pgsql-bugs@postgresql.org Subject: Re: ISBN: dump from 64bits and restore on 32 bits fail, Datum? In-reply-to: References: Comments: In-reply-to Daniel Cristian Cruz message dated "Wed, 10 Aug 2011 19:30:45 -0300" Date: Wed, 10 Aug 2011 18:58:49 -0400 Message-ID: <8656.1313017129@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.711 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.811 X-Spam-Level: X-Archive-Number: 201108/82 X-Sequence-Number: 30894 Daniel Cristian Cruz 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