Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 65E54B5DBEC for ; Wed, 22 Jun 2011 05:14:24 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 54523-01 for ; Wed, 22 Jun 2011 08:14:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mail.postgresql.org (Postfix) with ESMTP id EB97BB5D91F for ; Wed, 22 Jun 2011 05:14:17 -0300 (ADT) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p5M8EFD9088570 for ; Wed, 22 Jun 2011 11:14:15 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p5M8EFRu088569 for pgsql-admin@postgresql.org; Wed, 22 Jun 2011 11:14:15 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: pgsql-admin@postgresql.org Subject: Re: dump from 9.0 to 8.3 Date: Wed, 22 Jun 2011 11:14:14 +0300 User-Agent: KMail/1.9.7 References: <201106201841.36877.achill@matrix.gatewaynet.com> <4DFF2509020000250003E99E@gw.wicourts.gov> In-Reply-To: <4DFF2509020000250003E99E@gw.wicourts.gov> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201106221114.15315.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.451 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_BRBL_LASTEXT=1.449 X-Spam-Level: X-Archive-Number: 201106/134 X-Sequence-Number: 37760 =CE=A3=CF=84=CE=B9=CF=82 Monday 20 June 2011 18:46:33 =CE=B3=CF=81=CE=AC=CF= =88=CE=B1=CF=84=CE=B5: > Achilleas Mantzios wrote: > =20 > > is there any quick and dirty (or otherwise easy way) to have a > > smooth procedure to load into a 8.3 server data dumped by an 9.0 > > server ? > >=20 > > I tried with pg_dump -i from the 8.3 server without good results. > =20 > Your best bet might be to dump using the 9.0 pg_dump and then see > where the errors are on the load attempt, and edit the file as > needed. =46or the moment, from the server running 9.0, ALTER DATABASE dynacom SET bytea_output =3D 'escape'; pg_dump dynacom | sed 's/CREATE OR REPLACE/CREATE/g' | bzip2 | ssh 10.9.200= =2E254 "bzcat | psql dynacom -f -" seem to do the trick, till now at least, the restore is not yet complete. > =20 > -Kevin >=20 =2D-=20 Achilleas Mantzios