Re: Possible to exclude a database from loading a shared_preload_libraries module?
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Possible to exclude a database from loading a shared_preload_libraries module? |
| Дата | |
| Msg-id | 2136292.1713535821@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Possible to exclude a database from loading a shared_preload_libraries module? (Rajan Pandey <rajanpandey2508@gmail.com>) |
| Список | pgsql-hackers |
Rajan Pandey <rajanpandey2508@gmail.com> writes:
> Hi, I have a use case where I want a particular database to not load a few
> modules in shared_preload_libraries.
> I was wondering if there's any way to tweak the codebase to achieve this.
No. It's not even theoretically possible, because the whole point of
shared_preload_libraries is that the module gets loaded at postmaster
start.
Depending on what the module does, it might work to load it
per-session with session_preload_libraries, which you could attach
to the specific database(s) where you want it to be effective.
> Otherwise, can I block the modules' hooks/bgw from performing actions on my
> particular database?
That would be a feature for the individual module to implement.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера