From: Jan Wieck <JanWieck@Yahoo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Perrin <aperrin@socrates.berkeley.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: all views in database broken at once
Date: Sun, 25 Mar 2001 07:57:14 -0500 (EST)
Message-ID: <200103251257.HAA24194@jupiter.jw.home> (raw)
In-Reply-To: <10008.985481400@sss.pgh.pa.us>
Tom Lane wrote:
> Andrew Perrin <aperrin@socrates.berkeley.edu> writes:
> > But I'm intrigued: what is it that causes this? Is it *my*
> > recreating the view on which the other views depend,
>
> Yes. You dropped and recreated the view --- the new version may have
> the same name but it's not the same OID, so it isn't the same object.
> And the other views refer to it by OID.
>
> The ultimate solution should have two parts, IMHO:
>
> 1. Dependency checking so that you *can't* drop a view that is still
> referenced. However this will not be complete --- it's not clear that
> we can detect references inside PL functions, for example.
PL's aren't too critical. A simple reconnect will whipe out
all SPI plans in PL functions and RI triggers, so they'll
notice the changes.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck@Yahoo.com #
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
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-sql@postgresql.org
Cc: JanWieck@Yahoo.com, tgl@sss.pgh.pa.us, aperrin@socrates.berkeley.edu
Subject: Re: all views in database broken at once
In-Reply-To: <200103251257.HAA24194@jupiter.jw.home>
References: <10008.985481400@sss.pgh.pa.us> <200103251257.HAA24194@jupiter.jw.home>
* 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