Re: BUG #17081: Segmentation fault on _PG_init() in a session_preload_library

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17081: Segmentation fault on _PG_init() in a session_preload_library
Дата
Msg-id 807270.1625233817@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #17081: Segmentation fault on _PG_init() in a session_preload_library  (Martin Butter <martin.butter@splendiddata.com>)
Список pgsql-bugs
Martin Butter <martin.butter@splendiddata.com> writes:
> Extension test_spi_in_preload_session just executes 'select 1' in its 
> _PG_init() function.
> Until Postgres version 14beta1 this works fine, but in version 14beta2 
> the process dies.

I don't believe we have ever considered that (i.e., execution of general
SQL from a _PG_init function) to be a supported case.  If it seemed to
work before, that was completely accidental.  There is no transaction
context in place when process_session_preload_libraries runs.

            regards, tom lane



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