Re: Re: New relkind for views - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Re: New relkind for views
Date
Msg-id 28224.971744177@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re: New relkind for views  (Mark Hollomon <mhh@mindspring.com>)
Responses Re: Re: New relkind for views
List pgsql-hackers
Mark Hollomon <mhh@mindspring.com> writes:
>>>> I say let them drop it with either one. 
>> 
>> I kinda like the 'drop index with drop index', 'drop table with drop
>> table' and 'drop view with drop view' groupings ... at least you are
>> pretty sure you haven't 'oopsed' in the process :)

> So the vote is now tied. Any other opinions

I vote for the fascist approach (command must agree with actual type
of object).  Seems safest.  Please make sure the error message is
helpful though, like "Use DROP SEQUENCE to drop a sequence".
        regards, tom lane


pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: The lightbulb just went on...
Next
From: Philip Warner
Date:
Subject: Re: AW: Backup, restore & pg_dump