Re: RFC: Additional Directory for Extensions

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: RFC: Additional Directory for Extensions
Дата
Msg-id A3D50C61-64EB-4A42-B885-DBBBA045164C@justatheory.com
обсуждение исходный текст
Ответ на Re: RFC: Additional Directory for Extensions  (Jelte Fennema-Nio <postgres@jeltef.nl>)
Список pgsql-hackers
On Jun 24, 2024, at 17:17, Jelte Fennema-Nio <postgres@jeltef.nl> wrote:

> If you want to only change $libdir during CREATE EXTENSION (or ALTER
> EXTENSION UPDATE), then why not just change it there. And really you'd
> only want to change it when creating an extension from which the
> control file is coming from extension_destdir.

IIUC, the postmaster needs to load an extension on first use in every session unless it’s in shared_preload_libraries.

> However, I can also see a case for really always changing $libdir.
> Because some extensions in shared_preload_libraries, might want to
> trigger loading other libraries that they ship with dynamically. And
> these libraries are probably also in extension_destdir.

Right, it can be more than just the DSOs for the extension itself.

Best,

David




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

Предыдущее
От: Jelte Fennema-Nio
Дата:
Сообщение: Re: RFC: Additional Directory for Extensions
Следующее
От: Jelte Fennema-Nio
Дата:
Сообщение: Re: RFC: Additional Directory for Extensions