From: Michael Paquier Date: Wed, 24 Aug 2022 10:19:00 +0000 (+0900) Subject: Remove initialization of MyClientConnectionInfo at backend startup X-Git-Tag: REL_16_BETA1~1897 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=701ac2cb1fa25ca0b8572e87073d9008ed406b55;p=thirdparty%2Fpostgresql.git Remove initialization of MyClientConnectionInfo at backend startup This stuff should be already initialized at process startup, so adding this extra step is confusing for no gain. Per gripe from Tom Lane and Jacob Champion. Discussion: https://postgr.es/m/bbf2b922-4ff7-5c30-e3ef-2a8bdcdd1116@timescale.com --- diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 53f02241632..1664fcee2a7 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -4305,7 +4305,6 @@ BackendInitialize(Port *port) /* Save port etc. for ps status */ MyProcPort = port; - memset(&MyClientConnectionInfo, 0, sizeof(MyClientConnectionInfo)); /* Tell fd.c about the long-lived FD associated with the port */ ReserveExternalFD();