From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sergio Gabriel Rodriguez <sgrodriguez@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dump/pg_restore
Date: Tue, 08 Apr 2008 17:30:05 -0400
Message-ID: <8490.1207690205@sss.pgh.pa.us> (raw)
In-Reply-To: <15aa6b3e0804081252x43fb76c3ue8eed3edbeb940c9@mail.gmail.com>
References: <15aa6b3e0804081252x43fb76c3ue8eed3edbeb940c9@mail.gmail.com>
"Sergio Gabriel Rodriguez" <sgrodriguez@gmail.com> writes:
> I'm using postgresql 7.4, I have a problem with pg_dump/pg_restore. I
> want to back and restore only one schema from my db (I did it), but
> when I restore it, postgresql found errors in some views, this ones
> needs of others which can't be found because the script will generate
> them later. How can I make an orderer sql dump???
Switch to a newer PG version. If memory serves, 8.0 was the first
version in which pg_dump paid attention to dependencies rather than just
the order of original creation of views. In 7.x it wasn't hard to
cause problems by doing CREATE OR REPLACE VIEW.
regards, tom lane
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, sgrodriguez@gmail.com
Subject: Re: pg_dump/pg_restore
In-Reply-To: <8490.1207690205@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