Re: drop view with out cascading the dependents

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: drop view with out cascading the dependents
Дата
Msg-id AANLkTiksOnpU3=GaWptT151KsojhCBfm2iukiOnru3s9@mail.gmail.com
обсуждение исходный текст
Ответ на Re: drop view with out cascading the dependents  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Ответы Re: drop view with out cascading the dependents  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Список pgsql-general
2010/10/19 Grzegorz Jaśkiewicz <gryzman@gmail.com>:
> On Tue, Oct 19, 2010 at 3:12 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Ravi Katkar <Ravi.Katkar@infor.com> writes:
>>> Is there any feature to drop the view with out cascading the dependents.
>>
>> No.  But why don't you use CREATE OR REPLACE VIEW?
>>
> only caveat is, it won't work if he adds/removes any columns. CREATE
> OR REPLACE VIEW is rather useless in most practical implementations.

In recent versions of postgres (I think 8.4+?) you can add columns to
the view via create/replace (not drop of course).  This greatly
reduces the practical annoyances of dropping view dependencies, at
least for me...

merlin

В списке pgsql-general по дате отправления:

Предыдущее
От: Norberto Delle
Дата:
Сообщение: Trying to stop warm standby server service
Следующее
От: Viktor Bojović
Дата:
Сообщение: truncating or full vacuuming