aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-secure-gssapi.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-02-06 08:28:42 +0900
committerMichael Paquier <michael@paquier.xyz>2023-02-06 08:28:42 +0900
commit2f6e15ac93c58c1140e4a4affe61e78f7346497a (patch)
treed2757eb6b456c8f3d882d53d711792d5ee2fdee4 /src/interfaces/libpq/fe-secure-gssapi.c
parentb2d0e13a0a4c31167d01e9871f907060c80b8fae (diff)
downloadpostgresql-2f6e15ac93c58c1140e4a4affe61e78f7346497a.tar.gz
postgresql-2f6e15ac93c58c1140e4a4affe61e78f7346497a.zip
Revert refactoring of restore command code to shell_restore.c
This reverts commits 24c35ec and 57169ad. PreRestoreCommand() and PostRestoreCommand() need to be put closer to the system() call calling a restore_command, as they enable in_restore_command for the startup process which would in turn trigger an immediate proc_exit() in the SIGTERM handler. Perhaps we could get rid of this behavior entirely, but 24c35ec has made the window where the flag is enabled much larger than it was, and any Postgres-like actions (palloc, etc.) taken by code paths while the flag is enabled could lead to more severe issues in the shutdown processing. Note that curculio has showed that there are much more problems in this area, unrelated to this change, actually, hence the issues related to that had better be addressed first. Keeping the code of HEAD in line with the stable branches should make that a bit easier. Per discussion with Andres Freund and Nathan Bossart. Discussion: https://postgr.es/m/Y979NR3U5VnWrTwB@paquier.xyz
Diffstat (limited to 'src/interfaces/libpq/fe-secure-gssapi.c')
0 files changed, 0 insertions, 0 deletions