Re: BUG #17081: Segmentation fault on _PG_init() in a session_preload_library - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #17081: Segmentation fault on _PG_init() in a session_preload_library
Date
Msg-id 807270.1625233817@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #17081: Segmentation fault on _PG_init() in a session_preload_library  (Martin Butter <martin.butter@splendiddata.com>)
List 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 by date:

Previous
From: Andrey Lepikhov
Date:
Subject: The case when AsyncAppend exists also in the qual of Async ForeignScan
Next
From: PG Bug reporting form
Date:
Subject: BUG #17082: Status code: 404 for https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/repodata/rep