Re: DROP VIEW name WITHOUT TYPE

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: DROP VIEW name WITHOUT TYPE
Дата
Msg-id CAKFQuwapBvoG-yP6XboKDLX65aGvwvRKaRufQyferuDACM_snA@mail.gmail.com
обсуждение исходный текст
Ответ на DROP VIEW name WITHOUT TYPE  (Przemysław Sztoch <przemyslaw@sztoch.pl>)
Список pgsql-hackers
On Fri, Nov 8, 2024 at 7:51 AM Przemysław Sztoch <przemyslaw@sztoch.pl> wrote:

Is it possible to extend DROP VIEW command:

DROP VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT | WITHOUT TYPE]

I want to allow to DROP VIEW if any objects depend on it.

Am I right, If we leave (or convert) TYPE linked to VIEW, then DROP will be possible?

No...you can't write "select * from type_name" and that is going to be the most common kind of dependency you have to deal with.

David J.

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