postgresql/src/include/tcop
Andres Freund 7c83a3bf51 process startup: Split single user code out of PostgresMain().
It was harder than necessary to understand PostgresMain() because the code for
a normal backend was interspersed with single-user mode specific code. Split
most of the single-user mode code into its own function
PostgresSingleUserMain(), that does all the necessary setup for single-user
mode, and then hands off after that to PostgresMain().

There still is some single-user mode code in InitPostgres(), and it'd likely
be worth moving at least some of it out. But that's for later.

Reviewed-By: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20210802164124.ufo5buo4apl6yuvs@alap3.anarazel.de
2021-09-17 19:56:47 -07:00
..
cmdtag.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
cmdtaglist.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
deparse_utility.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
dest.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
fastpath.h Remove server and libpq support for old FE/BE protocol version 2. 2021-03-04 10:45:55 +02:00
pquery.h Restore the portal-level snapshot after procedure COMMIT/ROLLBACK. 2021-05-21 14:03:59 -04:00
tcopprot.h process startup: Split single user code out of PostgresMain(). 2021-09-17 19:56:47 -07:00
utility.h Centralize the logic for protective copying of utility statements. 2021-06-18 11:22:58 -04:00