projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f959bf9
)
Remove initialization of MyClientConnectionInfo at backend startup
author
Michael Paquier
<
[email protected]
>
Wed, 24 Aug 2022 10:19:00 +0000
(19:19 +0900)
committer
Michael Paquier
<
[email protected]
>
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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/postmaster/postmaster.c
b/src/backend/postmaster/postmaster.c
index 53f0224163298e07b795f99f70d20a9b2467d667..1664fcee2a70fbd9a53ce7796c8aa77ae2a48047 100644
(file)
--- 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();