pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Process shared_preload_libraries in single-user mode.
Date: Wed, 20 Jul 2022 17:17:41 +0000
Message-ID: <E1oEDKO-000SAY-DK@gemulon.postgresql.org> (raw)

Process shared_preload_libraries in single-user mode.

Without processing shared_preload_libraries, it's impossible to
recover if custom WAL resource managers are needed. It may also pose a
problem running VACUUM on a table with a custom AM, if the module
implementing the AM is expecting to be loaded by
shared_preload_libraries.

The reason this wasn't done before was just the general principle to
do fewer things in single-user mode. But it's easy enough to just set
shared_preload_libraries to empty, for the same effect.

Discussion: https://postgr.es/m/9decc18a42634f8a2f15c97a385a0f51a752f396.camel%40j-davis.com
Reviewed-by: Tom Lane, Andres Freund
Backpatch-through: 15

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2103266a360df688062c4188f1de074b957fd6e9

Modified Files
--------------
src/backend/tcop/postgres.c | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)



view thread (2+ messages)

Message-ID: <E1oEDKO-000SAY-DK@gemulon.postgresql.org>
Permalink:  ../E1oEDKO-000SAY-DK@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oEDKO-000SAY-DK@gemulon.postgresql.org

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org
  Subject: Re: pgsql: Process shared_preload_libraries in single-user mode.
  In-Reply-To: <E1oEDKO-000SAY-DK@gemulon.postgresql.org>
  References: <E1oEDKO-000SAY-DK@gemulon.postgresql.org>

* 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