process startup: Initialize PgStartTime earlier in single user mode.
authorAndres Freund <andres@anarazel.de>
Wed, 15 Sep 2021 20:16:00 +0000 (13:16 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 15 Sep 2021 20:17:12 +0000 (13:17 -0700)
commit2c7615f77b8d84130d304365aa2235eea7b5949c
treed3959e9b53530836d7db8d3db0e21d12ce161f05
parente3ec3c00d85bd2844ffddee83df2bd67c4f8297f
process startup: Initialize PgStartTime earlier in single user mode.

An upcoming patch splits single user mode handling out of PostgresMain(). The
startup time only needs to be determined in single user mode. Currently the
initialization happens late, which makes the split a bit harder. As postmaster
determines the time earlier it makes sense to move the time for single user
mode to a roughly similar point in time.

Reviewd-By: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20210802164124.ufo5buo4apl6yuvs@alap3.anarazel.de
src/backend/tcop/postgres.c