From: Tom Lane <tgl@sss.pgh.pa.us>
To: Martin Butter <martin.butter@splendiddata.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17081: Segmentation fault on _PG_init() in a session_preload_library
Date: Fri, 02 Jul 2021 09:50:17 -0400
Message-ID: <807270.1625233817@sss.pgh.pa.us> (raw)
In-Reply-To: <5e9f75fd-2886-2b7d-0a8f-0b46049786f5@splendiddata.com>
References: <17081-b5a83245fd4e64bb@postgresql.org>
<5e9f75fd-2886-2b7d-0a8f-0b46049786f5@splendiddata.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, martin.butter@splendiddata.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17081: Segmentation fault on _PG_init() in a session_preload_library
In-Reply-To: <807270.1625233817@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox