pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: KL <zappa_lot@gmx.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dump object dump-order
Date: Tue, 28 Aug 2007 16:32:39 -0400
Message-ID: <2810.1188333159@sss.pgh.pa.us> (raw)
In-Reply-To: <46D44897.10409@gmx.net>
References: <46D44897.10409@gmx.net>

KL <zappa_lot@gmx.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



view thread (2+ messages)

Message-ID: <2810.1188333159@sss.pgh.pa.us>
Permalink:  ../2810.1188333159@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2810.1188333159@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, zappa_lot@gmx.net
  Subject: Re: pg_dump object dump-order
  In-Reply-To: <2810.1188333159@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