Re: how to modify a view - Mailing list pgsql-general

From Reece Hart
Subject Re: how to modify a view
Date
Msg-id 1211313587.6940.70.camel@snafu
Whole thread Raw
In response to Re: how to modify a view  (Shane Ambler <pgsql@Sheeky.Biz>)
List pgsql-general
On Wed, 2008-05-21 at 02:43 +0930, Shane Ambler wrote:
Yes - The only way to do it is DROP VIEW... then CREATE VIEW... - the
catch is any other views that depend on the view you wish to drop.

Tip: It's sometimes useful to rename an existing view or table to deprecate it. (I use names like _someview_v_20080520.) When you rename a table or view, the definition of any views which depend on them will be updated appropriately. This is particularly handy when you have several layers of views and don't want to break current behavior.

-Reece

-- 
Reece Hart, http://harts.net/reece/, GPG:0x25EC91A0

pgsql-general by date:

Previous
From: Peter Petrov
Date:
Subject: Corrupted database's files (linux RAID5 + PostgreSQL 8.3.0)
Next
From: Decibel!
Date:
Subject: Short-circuiting FK check for a newly-added field