Remove initialization of MyClientConnectionInfo at backend startup
authorMichael Paquier <michael@paquier.xyz>
Wed, 24 Aug 2022 10:19:00 +0000 (19:19 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 24 Aug 2022 10:19:00 +0000 (19:19 +0900)
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

src/backend/postmaster/postmaster.c

index 53f0224163298e07b795f99f70d20a9b2467d667..1664fcee2a70fbd9a53ce7796c8aa77ae2a48047 100644 (file)
@@ -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();