From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Steve Ingram <ingram(at)samsixedd(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Apologies if you don't consider this a bug and I've wasted your time. |
Date: | 2004-08-28 03:21:05 |
Message-ID: | 15089.1093663265@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Steve Ingram <ingram(at)samsixedd(dot)com> writes:
> When I pg_dump out the database, it outputs all the tables, functions, types
> as you'd expect, but it outputs table definitions that reference postgis
> functions/types *before* the functions/types themselves.
Yeah, this is pretty likely if you did any ALTER TABLE or similar
commands anywhere along the line. The dump order is dependent on the
original creation order of the objects (tables, functions, etc) and so
it's pretty easy to break it by adding columns or indexes to
pre-existing tables.
8.0's pg_dump attempts to deal with this by paying attention to
dependencies, but no earlier release does anything at all credible.
FWIW, pg_restore does have options to alter the reload order, which
may be an easier workaround than editing a textual dump.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | zhongxb | 2004-08-28 04:03:32 | pgsql 8.0 beta1 patch for token and timezone |
Previous Message | Gaetano Mendola | 2004-08-27 18:31:30 | Re: BUG #1231: Probelm with transactions in stored code. |