Skip site navigation (1) Skip section navigation (2)

Re: pg_dump object dump-order

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: KL <zappa_lot(at)gmx(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_dump object dump-order
Date: 2007-08-28 20:32:39
Message-ID: 2810.1188333159@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
KL <zappa_lot(at)gmx(dot)net> writes:
> pg_dump seems to dump objects strictly alphabetically,

No, it doesn't ... at least not if you are running 8.0 or later.
It looks at dependencies to see what has to be dumped first.
(It does prefer alpha order when there's no dependency constraint.)

There are various situations where there might not be a dependency
entry, but without knowing more about the history of the table and
exactly which version you're running, it's hard to speculate about
why or what's the best fix.

I will point out, however, that the given script does not in fact
fail to load in any Postgres version known to me.  Maybe you should
post your real problem instead of an oversimplified example.

			regards, tom lane

In response to

pgsql-admin by date

Next:From: Andrew SullivanDate: 2007-08-28 20:36:50
Subject: Re: How to monitor resources on Linux.
Previous:From: Andrew SullivanDate: 2007-08-28 20:28:54
Subject: Re: How to monitor resources on Linux.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group