Re: archive modules
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: talk to ben <blo.talkto@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, "Bossart, Nathan" <bossartn@amazon.com>, David Steele <david@pgmasters.net>, Fujii Masao <masao.fujii@oss.nttdata.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>, Michael Paquier <michael@paquier.xyz>, Magnus Hagander <magnus@hagander.net>, Stephen Frost <sfrost@snowman.net>
Date: 2022-07-06T16:41:05Z
Lists: pgsql-hackers
On Wed, Jul 06, 2022 at 06:21:24PM +0200, talk to ben wrote: > I am not sure why, but I can't find "basic_archive.archive_directory" in > pg_settings the same way I would find for example : > "pg_stat_statements.max". > > [local]:5656 benoit@postgres=# SELECT count(*) FROM pg_settings WHERE name > = 'basic_archive.archive_directory'; > count > ------- > 0 > (1 row) > > show can find it if I use the complete name but tab completion can't find > the guc: > > [local]:5656 benoit@postgres=# show basic_archive.archive_directory; > basic_archive.archive_directory > --------------------------------- > /home/benoit/tmp/tmp/archives > (1 row) I think the reason is that only the archiver process loads the library, so the GUC isn't registered at startup like you'd normally see with shared_preload_libraries. IIUC the server will still create a placeholder GUC during startup for custom parameters, which is why it shows up for SHOW commands. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com
Commits
-
Disallow setting archive_library and archive_command at the same time
- d627ce3b706d 16.0 landed
-
Restore archive_command documentation
- ba50834551f9 16.0 landed
- 5f56933ea5d5 15.0 landed
-
Doc: improve explanation of when custom GUCs appear in pg_settings.
- 44a51dc990cc 15.0 landed
- 857808a4116b 16.0 landed
-
doc: Add note about re-archiving of same WAL files in docs.
- 3cabe45a819f 16.0 cited
-
In basic_archive tests, insist on wal_level='replica'.
- 00c360a89c1a 15.0 landed
-
Allow archiving via loadable modules.
- 5ef1eefd76f4 15.0 landed
-
Move the code to archive files via the shell to a separate file.
- aeb4cc9ea07a 15.0 landed