postgresql/contrib/basic_archive
Nathan Bossart 8fc45ac5d9 basic_archive: Allow archive directory to be missing at startup.
Presently, the GUC check hook for basic_archive.archive_directory
checks that the specified directory exists.  Consequently, if the
directory does not exist at server startup, archiving will be stuck
indefinitely, even if it appears later.  To fix, remove this check
from the hook so that archiving will resume automatically once the
directory is present.  basic_archive must already be prepared to
deal with the directory disappearing at any time, so no additional
special handling is required.

Reported-by: Олег Самойлов <splarv@ya.ru>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Sergei Kornilov <sk@zsrv.org>
Discussion: https://postgr.es/m/73271769675212%40mail.yandex.ru
Backpatch-through: 15
2026-03-02 13:12:25 -06:00
..
expected Allow archiving via loadable modules. 2022-02-03 14:05:02 -05:00
sql Allow archiving via loadable modules. 2022-02-03 14:05:02 -05:00
.gitignore Allow archiving via loadable modules. 2022-02-03 14:05:02 -05:00
basic_archive.c basic_archive: Allow archive directory to be missing at startup. 2026-03-02 13:12:25 -06:00
basic_archive.conf Formatting and punctuation improvements in sample configuration files 2022-05-10 21:15:56 +02:00
Makefile Fix calculation related to temporary WAL segment name in basic_archive 2022-10-17 11:40:19 +09:00