1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00
Files
postgres/src/backend
Noah Misch 2b3e4672f7 Don't ERROR on PreallocXlogFiles() race condition.
Before a restartpoint finishes PreallocXlogFiles(), a startup process
KeepFileRestoredFromArchive() call can unlink the preallocated segment.
If a CHECKPOINT sql command had elicited the restartpoint experiencing
the race condition, that sql command failed.  Moreover, the restartpoint
omitted its log_checkpoints message and some inessential resource
reclamation.  Prevent the ERROR by skipping open() of the segment.
Since these consequences are so minor, no back-patch.

Discussion: https://postgr.es/m/20210202151416.GB3304930@rfd.leadboat.com
2021-06-28 18:34:56 -07:00
..
2021-06-28 08:36:44 +02:00
2021-01-02 13:06:25 -05:00
2021-04-20 14:35:16 +02:00
2021-01-02 13:06:25 -05:00
2021-06-21 12:33:50 +02:00
2021-06-28 08:36:44 +02:00
2021-02-19 08:10:15 +01:00
2021-06-27 09:41:16 +02:00
2021-06-28 08:36:44 +02:00
2021-06-28 08:36:44 +02:00
2021-05-10 14:36:21 +02:00