Re: bug in 7.4 SET WITHOUT OIDs - Mailing list pgsql-hackers

From Robert Treat
Subject Re: bug in 7.4 SET WITHOUT OIDs
Date
Msg-id 200403231257.38936.xzilla@users.sourceforge.net
Whole thread Raw
In response to Re: bug in 7.4 SET WITHOUT OIDs  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: bug in 7.4 SET WITHOUT OIDs
List pgsql-hackers
On Tuesday 23 March 2004 02:34, Christopher Kings-Lynne wrote:
> >>Maybe it needs CASCADE/RESTRICT added?
> >
> > Seems like overkill, considering that this is a very marginal feature.
> > I'm happy to decree that it works in whichever way is the easiest to
> > implement.
>
> In that case, it seems to me that it has to be default RESTRICT.  If
> anything depend on it, it must fail.  Otherwise when you do it, it could
> drop views, functions, everything.
>

FWIW current behavior when dropping a column is to restrict it if there is a 
view dependent on the column, however we automagically drop indexes on 
columns when dropping columns without even a notice.

Point being that in the original case, I think the index on the oid column 
should be dropped automagically, to follow similar behavior with normal 
columns. 

Robert Treat
-- 
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: bug in 7.4 SET WITHOUT OIDs
Next
From: Tom Lane
Date:
Subject: Re: bug in 7.4 SET WITHOUT OIDs