Re: alter function/procedure depends on extension

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: alter function/procedure depends on extension
Дата
Msg-id 3889546.1645156447@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: alter function/procedure depends on extension  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: alter function/procedure depends on extension  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Thu, Feb 17, 2022 at 6:17 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> There is no bug here; it's operating as designed and documented.
>> Maybe the docs need some refinement.

> We should just say that ALTER FUNCTION ALTER DEPENDS ON makes the target
> function/procedure a (transient?) member of the extension and it will be
> dropped when the extension be dropped.

It's not a member though; there's a different syntax for that
(ALTER EXTENSION name ADD member_object).  The differences are
a bit subtle, but for example making the function an extension
member would change how pg_dump treats it.

I confess not remembering exactly why we thought the auto-drop
behavior was important enough to deserve special infrastructure.
Still, it's there now, and the question of dependencies that the
dependency system can't see is really quite a different thing.

            regards, tom lane



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: alter function/procedure depends on extension
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: alter function/procedure depends on extension