From: Tom Lane <tgl@sss.pgh.pa.us>
To: lalbin@fhcrc.org
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7553: Un-executable view definitions in pg_catalog.pg_views in versions 8.3.x-9.2.0
Date: Tue, 18 Sep 2012 12:41:18 -0400
Message-ID: <21842.1347986478@sss.pgh.pa.us> (raw)
In-Reply-To: <E1TDr6J-0005cs-0U@wrigleys.postgresql.org>
References: <E1TDr6J-0005cs-0U@wrigleys.postgresql.org>
lalbin@fhcrc.org writes:
> I have run across a situation where we are changing schema and table names
> that a view references. The view is still viewable with a select statement
> but if you try and execute the view definition contained within the
> pg_catalog.pg_views, then it fails.
This appears to be a variant of the what-alias-to-use-after-a-rename
problem that we were discussing last winter:
http://archives.postgresql.org/message-id/29791.1327718297@sss.pgh.pa.us
That thread kinda died off after coming to the conclusion that there
isn't a simple, obviously correct solution. The code's current behavior
is definitely wrong in the face of renames, but I don't want to change
it in a way that just moves the failure cases elsewhere (which is what
would happen for any of the proposals made in the thread :-().
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 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: tgl@sss.pgh.pa.us, lalbin@fhcrc.org
Subject: Re: BUG #7553: Un-executable view definitions in pg_catalog.pg_views in versions 8.3.x-9.2.0
In-Reply-To: <21842.1347986478@sss.pgh.pa.us>
References: <E1TDr6J-0005cs-0U@wrigleys.postgresql.org> <21842.1347986478@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