Re: Restore from 7.3 to 7.2

From: frag <frag29(at)NOSPAM(dot)o2(dot)pl>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Restore from 7.3 to 7.2
Date: 2003-02-15 15:24:15
Message-ID: b2lm2q$bfl$1@nemesis.news.tpi.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Emmanuel Charpentier wrote:
> chris(dot)gamble(at)CPBINC(dot)com wrote:
>
>> I have a 7.3 postgres database that I need to create a backup from, and
>> restore onto a 7.2 database. Is this possible and if so where can I find
>> references on doing so?
>
>
> I stumbled on this one recently. The only way I found was to do a *text*
> dump (pg_dump -F p) and edit the dump : you have to delete all
> references to schemas and all references to column names in the "copy"
> commands restoring data.

Also remove all references to pg_catalog from the SELECTs initiating
sequence numbers with setval(...).

And if you have to move large objects as well, it should be possible to
dump to tar format, untar it manually, find and modify the sql file,
prepare a new tar out of them and restore the archive. I haven't tested
it in this scenario actually but it might work.

HTH

Przemek Tomala

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-02-15 15:42:07 Re: Aggregates with non-commutative transition functions
Previous Message Ezra 2003-02-15 14:52:37 Does postgres have something similiar to the LOAD DATA INFILE