pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6634: pg_dump dumps cast after objects depending on it
3+ messages / 2 participants
[nested] [flat]
* BUG #6634: pg_dump dumps cast after objects depending on it
@ 2012-05-08 13:31 avandras@gmail.com
0 siblings, 1 reply; 3+ messages in thread
From: avandras@gmail.com @ 2012-05-08 13:31 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 6634
Logged by: András Váczi
Email address: avandras@gmail.com
PostgreSQL version: 9.1.3
Operating system: Ubuntu 10.04.4 LTS
Description:
A cast, which transforms a composite type to timestamp without time zone, is
included in the regular backups of a database.
There are several views utilizing this cast, but these are always listed
before the cast, therefore pg_restore or psql will issue an error instead of
creating the view.
This causes that the DB cannot be successfully restored, only with the help
of an additional patch file, which must be maintained by hand.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #6634: pg_dump dumps cast after objects depending on it
@ 2012-05-08 17:41 Tom Lane <tgl@sss.pgh.pa.us>
parent: avandras@gmail.com
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2012-05-08 17:41 UTC (permalink / raw)
To: avandras@gmail.com; +Cc: pgsql-bugs
avandras@gmail.com writes:
> A cast, which transforms a composite type to timestamp without time zone, is
> included in the regular backups of a database.
> There are several views utilizing this cast, but these are always listed
> before the cast, therefore pg_restore or psql will issue an error instead of
> creating the view.
Please provide a concrete example.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #6634: pg_dump dumps cast after objects depending on it
@ 2012-05-10 06:14 Tom Lane <tgl@sss.pgh.pa.us>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 2012-05-10 06:14 UTC (permalink / raw)
To: András Váczi <avandras@gmail.com>; +Cc: pgsql-bugs
=?ISO-8859-1?B?QW5kcuFzIFbhY3pp?= <avandras@gmail.com> writes:
> Object list as pg_restore outputs (see error log below):
That is not tremendously helpful. pg_dump should generally dump casts
before views, and you have not provided any information that would tell
why it's not doing so in this case. We need to see a complete *self
contained* test case, such as a SQL script that creates a set of objects
that don't dump correctly.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2012-05-10 06:14 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-05-08 13:31 BUG #6634: pg_dump dumps cast after objects depending on it avandras@gmail.com
2012-05-08 17:41 ` Tom Lane <tgl@sss.pgh.pa.us>
2012-05-10 06:14 ` Tom Lane <tgl@sss.pgh.pa.us>
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