git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 2f31f40) | patch
Refactor code for restoring files via shell commands
2023年1月18日 02:15:48 +0000 (11:15 +0900)
2023年1月18日 02:15:48 +0000 (11:15 +0900)
commit 14bdb3f13de16523609d838b725540af5e23ddd3
Refactor code for restoring files via shell commands

Presently, restore_command uses a different code path than
archive_cleanup_command and recovery_end_command. These code paths
are similar and can be easily combined, as long as it is possible to
identify if a command should:
- Issue a FATAL on signal.
- Exit immediately on SIGTERM.

While on it, this removes src/common/archive.c and its associated
header. Since the introduction of c96de2c, BuildRestoreCommand() has
become a simple wrapper of replace_percent_placeholders() able to call
make_native_path(). This simplifies shell_restore.c as long as
RestoreArchivedFile() includes a call to make_native_path().

Author: Nathan Bossart
Reviewed-by: Andres Freund, Michael Paquier
Discussion: https://postgr.es/m/20221227192449.GA3672473@nathanxps13
src/backend/access/transam/shell_restore.c diff | blob | blame | history
src/backend/access/transam/xlogarchive.c diff | blob | blame | history
src/common/Makefile diff | blob | blame | history
src/common/archive.c [deleted file] blob | blame | history
src/common/meson.build diff | blob | blame | history
src/fe_utils/archive.c diff | blob | blame | history
src/include/common/archive.h [deleted file] blob | blame | history
src/tools/msvc/Mkvcbuild.pm diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /