mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-27 22:12:04 +02:00
2f6e15ac93
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
35 lines
615 B
Meson
35 lines
615 B
Meson
# Copyright (c) 2022-2023, PostgreSQL Global Development Group
|
|
|
|
backend_sources += files(
|
|
'clog.c',
|
|
'commit_ts.c',
|
|
'generic_xlog.c',
|
|
'multixact.c',
|
|
'parallel.c',
|
|
'rmgr.c',
|
|
'slru.c',
|
|
'subtrans.c',
|
|
'timeline.c',
|
|
'transam.c',
|
|
'twophase.c',
|
|
'twophase_rmgr.c',
|
|
'varsup.c',
|
|
'xact.c',
|
|
'xlog.c',
|
|
'xlogarchive.c',
|
|
'xlogbackup.c',
|
|
'xlogfuncs.c',
|
|
'xloginsert.c',
|
|
'xlogprefetcher.c',
|
|
'xlogrecovery.c',
|
|
'xlogstats.c',
|
|
'xlogutils.c',
|
|
)
|
|
|
|
# used by frontend programs to build a frontend xlogreader
|
|
xlogreader_sources = files(
|
|
'xlogreader.c',
|
|
)
|
|
|
|
backend_sources += xlogreader_sources
|