postgresql/src/backend
Robert Haas 6df1543abf Refactor some end-of-recovery code out of StartupXLOG().
Create a new function PerformRecoveryXLogAction() and move the
code which either writes an end-of-recovery record or requests a
checkpoint there.

Also create a new function CleanupAfterArchiveRecovery() to
perform a few tasks that we want to do after we've actually exited
archive recovery but before we start accepting new WAL writes.

More refactoring of this file is planned, but this commit is
just straightforward code movement to make StartupXLOG() a
little bit shorter and a little bit easier to understand.

Robert Haas and Amul Sul

Discussion: http://postgr.es/m/CAAJ_b97abMuq=470Wahun=aS1PHTSbStHtrjjPaD-C0YQ1AqVw@mail.gmail.com
2021-10-13 12:23:32 -04:00
..
access Refactor some end-of-recovery code out of StartupXLOG(). 2021-10-13 12:23:32 -04:00
bootstrap Fix bogus assertion in BootstrapModeMain(). 2021-08-09 08:28:53 -07:00
catalog Fix duplicate words in comments 2021-10-04 15:12:57 +02:00
commands Fix use-after-free with multirange types in CREATE TYPE 2021-10-13 16:38:07 +09:00
executor Clean up more code using "(expr) ? true : false" 2021-10-11 09:36:42 +09:00
foreign Update copyright for 2021 2021-01-02 13:06:25 -05:00
jit Track LLVM 14 API changes. 2021-09-27 10:53:20 +13:00
lib Fix typo in comment 2021-04-20 14:35:16 +02:00
libpq Message style improvements 2021-09-16 15:36:44 +02:00
main process startup: Split single user code out of PostgresMain(). 2021-09-17 19:56:47 -07:00
nodes Improve order in file 2021-10-07 08:20:55 +02:00
optimizer Add missing word to comment in joinrels.c. 2021-10-07 17:45:00 +09:00
parser Error out if SKIP LOCKED and WITH TIES are both specified 2021-10-01 18:29:18 -03:00
partitioning Fix duplicate words in comments 2021-10-04 15:12:57 +02:00
po Translation updates 2021-06-21 12:33:50 +02:00
port Treat ETIMEDOUT as indicating a non-recoverable connection failure. 2021-09-30 14:16:08 -04:00
postmaster Make autovacuum launcher more responsive to pg_log_backend_memory_contexts(). 2021-10-12 09:50:17 +09:00
regex Make pg_regexec() robust against out-of-range search_start. 2021-09-11 15:19:31 -04:00
replication Refactor basebackup.c's _tarWriteDir() function. 2021-10-12 13:11:29 -04:00
rewrite Fix rewriter to set hasModifyingCTE correctly on rewritten queries. 2021-09-08 12:05:47 -04:00
snowball Update snowball 2021-02-19 08:10:15 +01:00
statistics Clean up more code using "(expr) ? true : false" 2021-10-11 09:36:42 +09:00
storage Fix duplicate words in comments 2021-10-04 15:12:57 +02:00
tcop Fix Portal snapshot tracking to handle subtransactions properly. 2021-10-01 11:10:12 -04:00
tsearch Clean up more code using "(expr) ? true : false" 2021-10-11 09:36:42 +09:00
utils Fix EXPLAIN of SEARCH BREADTH FIRST queries some more. 2021-10-11 11:56:52 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Use sort_template.h for qsort_tuple() and qsort_ssup(). 2021-03-03 17:02:32 +13:00
nls.mk Translation updates 2021-05-10 14:36:21 +02:00