From: Alvaro Herrera <alvherre@commandprompt.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Daniel Cristian Cruz <danielcristian@gmail.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6050: Dump and restore of view after a schema change: can't restore the view
Date: Fri, 03 Jun 2011 16:03:03 -0400
Message-ID: <1307131302-sup-3920@alvh.no-ip.org> (raw)
In-Reply-To: <27042.1307113140@sss.pgh.pa.us>
References: <201106031238.p53CcA8P075374@wwwmaster.postgresql.org>
<27042.1307113140@sss.pgh.pa.us>
Excerpts from Tom Lane's message of vie jun 03 10:59:00 -0400 2011:
> I'm inclined to write this off as "so don't do that". There's nothing
> that pg_dump can do to make this work: it has to use the USING syntax
> for the join, and that doesn't offer any way to qualify the column name
> on just one side. The only possible fix would be to try to make ALTER
> TABLE reject the addition of the conflicting column name to "c" in the
> first place.
Would it be possible to dump USING as an equivalent ON condition on
output (nodeToString), and then examine simple ON conditions to turn
them into USING conditions on input (stringToNode)?
--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: alvherre@commandprompt.com, tgl@sss.pgh.pa.us, danielcristian@gmail.com
Subject: Re: BUG #6050: Dump and restore of view after a schema change: can't restore the view
In-Reply-To: <1307131302-sup-3920@alvh.no-ip.org>
References: <201106031238.p53CcA8P075374@wwwmaster.postgresql.org> <27042.1307113140@sss.pgh.pa.us> <1307131302-sup-3920@alvh.no-ip.org>
* 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