]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Process shared_preload_libraries in single-user mode.
authorJeff Davis <jdavis@postgresql.org>
Fri, 15 Jul 2022 19:24:10 +0000 (12:24 -0700)
committerJeff Davis <jdavis@postgresql.org>
Wed, 20 Jul 2022 16:37:00 +0000 (09:37 -0700)
commit2103266a360df688062c4188f1de074b957fd6e9
tree55c1dc4814d79b8177dd9fbaeeea16e56375ebda
parent0829cc43ed69252184f90161b4940444d8b48574
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
src/backend/tcop/postgres.c