forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcf8d5a7
Revert refactoring of restore command code to shell_restore.c
This reverts commits 24c35ec and 57169ad. PreRestoreCommand() andPostRestoreCommand() need to be put closer to the system() call callinga restore_command, as they enable in_restore_command for the startupprocess which would in turn trigger an immediate proc_exit() in theSIGTERM handler. Perhaps we could get rid of this behavior entirely,but 24c35ec has made the window where the flag is enabled much largerthan it was, and any Postgres-like actions (palloc, etc.) taken by codepaths while the flag is enabled could lead to more severe issues in theshutdown processing.Note that curculio has showed that there are much more problems in thisarea, unrelated to this change, actually, hence the issues related tothat had better be addressed first. Keeping the code of HEAD in linewith the stable branches should make that a bit easier.Per discussion with Andres Freund and Nathan Bossart.Discussion:https://postgr.es/m/Y979NR3U5VnWrTwB@paquier.xyz1 parent6be43b5 commitcf8d5a7
File tree
12 files changed
+215
-219
lines changed- src
- backend/access/transam
- common
- fe_utils
- include
- access
- common
- tools/msvc
12 files changed
+215
-219
lines changedLines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 | 22 |
| |
24 | 23 |
| |
25 | 24 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
11 | 10 |
| |
12 | 11 |
| |
13 | 12 |
| |
|
Lines changed: 0 additions & 171 deletions
This file was deleted.
Lines changed: 8 additions & 29 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
692 | 692 |
| |
693 | 693 |
| |
694 | 694 |
| |
695 |
| - | |
696 | 695 |
| |
697 | 696 |
| |
698 | 697 |
| |
| |||
4890 | 4889 |
| |
4891 | 4890 |
| |
4892 | 4891 |
| |
4893 |
| - | |
4894 |
| - | |
4895 |
| - | |
4896 |
| - | |
4897 |
| - | |
4898 |
| - | |
| 4892 | + | |
| 4893 | + | |
| 4894 | + | |
| 4895 | + | |
4899 | 4896 |
| |
4900 | 4897 |
| |
4901 | 4898 |
| |
| |||
7312 | 7309 |
| |
7313 | 7310 |
| |
7314 | 7311 |
| |
7315 |
| - | |
7316 |
| - | |
7317 |
| - | |
7318 |
| - | |
7319 |
| - | |
7320 |
| - | |
| 7312 | + | |
| 7313 | + | |
| 7314 | + | |
| 7315 | + | |
7321 | 7316 |
| |
7322 | 7317 |
| |
7323 | 7318 |
| |
| |||
8894 | 8889 |
| |
8895 | 8890 |
| |
8896 | 8891 |
| |
8897 |
| - | |
8898 |
| - | |
8899 |
| - | |
8900 |
| - | |
8901 |
| - | |
8902 |
| - | |
8903 |
| - | |
8904 |
| - | |
8905 |
| - | |
8906 |
| - | |
8907 |
| - | |
8908 |
| - | |
8909 |
| - | |
8910 |
| - | |
8911 |
| - | |
8912 |
| - | |
8913 | 8892 |
| |
8914 | 8893 |
| |
8915 | 8894 |
| |
|
0 commit comments
Comments
(0)