pg_dump custom format across versions

Started by Thom Brownalmost 16 years ago7 messagesgeneral
Jump to latest
#1Thom Brown
thombrown@gmail.com

Hi,

Does anyone know if there are issues with performing a pg_dump in custom
format in one major version, and using pg_restore on it on a higher version?

Thanks

Thom

#2Joshua D. Drake
jd@commandprompt.com
In reply to: Thom Brown (#1)
Re: pg_dump custom format across versions

On Wed, 2010-05-12 at 19:05 +0100, Thom Brown wrote:

Hi,

Does anyone know if there are issues with performing a pg_dump in
custom format in one major version, and using pg_restore on it on a
higher version?

You want to use the pg_dump from the higher version.

Joshua D. Drake

Thanks

Thom

--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering

#3Thom Brown
thombrown@gmail.com
In reply to: Joshua D. Drake (#2)
Re: pg_dump custom format across versions

On 12 May 2010 19:29, Joshua D. Drake <jd@commandprompt.com> wrote:

On Wed, 2010-05-12 at 19:05 +0100, Thom Brown wrote:

Hi,

Does anyone know if there are issues with performing a pg_dump in
custom format in one major version, and using pg_restore on it on a
higher version?

You want to use the pg_dump from the higher version.

Joshua D. Drake

Am I to gather that there are possible incompatibilities?

Thom

#4Joshua D. Drake
jd@commandprompt.com
In reply to: Thom Brown (#3)
Re: pg_dump custom format across versions

On Wed, 2010-05-12 at 19:33 +0100, Thom Brown wrote:

On 12 May 2010 19:29, Joshua D. Drake <jd@commandprompt.com> wrote:

On Wed, 2010-05-12 at 19:05 +0100, Thom Brown wrote:

Hi,

Does anyone know if there are issues with performing a

pg_dump in

custom format in one major version, and using pg_restore on

it on a

higher version?

You want to use the pg_dump from the higher version.

Joshua D. Drake

Am I to gather that there are possible incompatibilities?

Definitely.

Joshua D. Drake

Thom

--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering

#5Thom Brown
thombrown@gmail.com
In reply to: Joshua D. Drake (#4)
Re: pg_dump custom format across versions

On 12 May 2010 19:40, Joshua D. Drake <jd@commandprompt.com> wrote:

On Wed, 2010-05-12 at 19:33 +0100, Thom Brown wrote:

On 12 May 2010 19:29, Joshua D. Drake <jd@commandprompt.com> wrote:

On Wed, 2010-05-12 at 19:05 +0100, Thom Brown wrote:

Hi,

Does anyone know if there are issues with performing a

pg_dump in

custom format in one major version, and using pg_restore on

it on a

higher version?

You want to use the pg_dump from the higher version.

Joshua D. Drake

Am I to gather that there are possible incompatibilities?

Definitely.

Joshua D. Drake

Thanks for the info Joshua.

In that case, it might be an idea to clarify that on the documentation. I
couldn't find this information.

Thom

#6Tom Lane
tgl@sss.pgh.pa.us
In reply to: Thom Brown (#5)
Re: pg_dump custom format across versions

Thom Brown <thombrown@gmail.com> writes:

On 12 May 2010 19:40, Joshua D. Drake <jd@commandprompt.com> wrote:

Am I to gather that there are possible incompatibilities?

Definitely.

In that case, it might be an idea to clarify that on the documentation. I
couldn't find this information.

If it were true, it would be in the documentation.

The reason for suggesting that you use the newer pg_dump during a
version upgrade is that the newer version might have bug fixes that
your current version lacks. In the absence of bugs, however, pg_restore
is supposed to read dump files produced by older versions of pg_dump.
If it fails to, that in itself is a filable bug.

regards, tom lane

#7Thom Brown
thombrown@gmail.com
In reply to: Tom Lane (#6)
Re: pg_dump custom format across versions

On 12 May 2010 20:18, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Thom Brown <thombrown@gmail.com> writes:

On 12 May 2010 19:40, Joshua D. Drake <jd@commandprompt.com> wrote:

Am I to gather that there are possible incompatibilities?

Definitely.

In that case, it might be an idea to clarify that on the documentation.

I

couldn't find this information.

If it were true, it would be in the documentation.

The reason for suggesting that you use the newer pg_dump during a
version upgrade is that the newer version might have bug fixes that
your current version lacks. In the absence of bugs, however, pg_restore
is supposed to read dump files produced by older versions of pg_dump.
If it fails to, that in itself is a filable bug.

regards, tom lane

Ah, I see. Thanks. Well I think that information would still be useful in
the docs.

Thom