]> git.ipfire.org Git - thirdparty/postgresql.git/commit
basic_archive: Allow archive directory to be missing at startup.
authorNathan Bossart <nathan@postgresql.org>
Mon, 2 Mar 2026 19:12:25 +0000 (13:12 -0600)
committerNathan Bossart <nathan@postgresql.org>
Mon, 2 Mar 2026 19:12:25 +0000 (13:12 -0600)
commit28c2b789652a8df0999d5dbfefa2482dafdcaaa1
treeee761515a3a1900e571a053ee9558611597c2cc6
parenta4649c50a8db58c19fa9a4f2ae12bef52b6c872b
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
contrib/basic_archive/basic_archive.c