Re: pg_restore TODO - delay PK creation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Iain" <iain(at)mst(dot)co(dot)jp>
Cc: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_restore TODO - delay PK creation
Date: 2004-11-01 03:36:22
Message-ID: 4249.1099280182@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Iain" <iain(at)mst(dot)co(dot)jp> writes:
> Out of interest, what is the word on using newer versions of pg_dump on
> older verisons of the DB - is it is possible or even wise to unload a 7.1
> DB with the 7.4 version of pg?

Standard, recommended procedure is to use the later version of pg_dump
to unload data from the old server. This gets you the benefit of any
bug fixes in the newer pg_dump (of which there are always some...)

Note that pg_dump is usually not designed to produce output that will
load into back-release servers, so this only applies to cross-version
upgrades. You can't use the 7.4 pg_dump against a 7.1 server and expect
to get a dump file that will load back into the 7.1 server --- more than
likely, the dump file will make use of features that weren't in 7.1.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Iain 2004-11-01 05:42:16 Re: pg_restore TODO - delay PK creation
Previous Message Bruce Momjian 2004-11-01 03:25:24 Re: pg_restore TODO - delay PK creation