pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Iain <iain@mst.co.jp>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_restore TODO - delay PK creation
Date: Sun, 31 Oct 2004 22:36:22 -0500
Message-ID: <4249.1099280182@sss.pgh.pa.us> (raw)
In-Reply-To: <017e01c4bfc0$6d17d140$7201a8c0@mst1x5r347kymb>
References: <200411010236.iA12a6V19009@candle.pha.pa.us>
	<017e01c4bfc0$6d17d140$7201a8c0@mst1x5r347kymb>

"Iain" <iain@mst.co.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



view thread (8+ messages)  latest in thread

Message-ID: <4249.1099280182@sss.pgh.pa.us>
Permalink:  ../4249.1099280182@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4249.1099280182@sss.pgh.pa.us

 · 

reply

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, iain@mst.co.jp, pgman@candle.pha.pa.us
  Subject: Re: pg_restore TODO - delay PK creation
  In-Reply-To: <4249.1099280182@sss.pgh.pa.us>
  References: <200411010236.iA12a6V19009@candle.pha.pa.us> <017e01c4bfc0$6d17d140$7201a8c0@mst1x5r347kymb> <4249.1099280182@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