aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-01-05 16:18:01 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-01-05 16:18:05 -0500
commitbf8a662c9afad6fd07b42cdc5e71416c51f75d31 (patch)
tree6b2d6c2e185a0dd4897101935d69ef3d5b3969cd /src/backend/tcop/postgres.c
parent47b2ed1d06c1218eee8869c8eca8bf002b9d43a6 (diff)
downloadpostgresql-bf8a662c9afad6fd07b42cdc5e71416c51f75d31.tar.gz
postgresql-bf8a662c9afad6fd07b42cdc5e71416c51f75d31.zip
Introduce a new GUC_REPORT setting "in_hot_standby".
Aside from being queriable via SHOW, this value is sent to the client immediately at session startup, and again later on if the server gets promoted to primary during the session. The immediate report will be used in an upcoming patch to avoid an extra round trip when trying to connect to a primary server. Haribabu Kommi, Greg Nancarrow, Tom Lane; reviewed at various times by Laurenz Albe, Takayuki Tsunakawa, Peter Smith. Discussion: https://postgr.es/m/CAF3+xM+8-ztOkaV9gHiJ3wfgENTq97QcjXQt+rbFQ6F7oNzt9A@mail.gmail.com
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions