Re: how to modify a view

Поиск
Список
Период
Сортировка
От Reece Hart
Тема Re: how to modify a view
Дата
Msg-id 1211313587.6940.70.camel@snafu
обсуждение исходный текст
Ответ на Re: how to modify a view  (Shane Ambler <pgsql@Sheeky.Biz>)
Список 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 по дате отправления:

Предыдущее
От: Peter Petrov
Дата:
Сообщение: Corrupted database's files (linux RAID5 + PostgreSQL 8.3.0)
Следующее
От: Decibel!
Дата:
Сообщение: Short-circuiting FK check for a newly-added field