diff options
Diffstat (limited to 'src/backend/postmaster/postmaster.c')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index b4f34c57a1b..57155c00e01 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -3478,6 +3478,12 @@ BackendStartup(ClientSocket *client_sock) CAC_state cac; /* + * Capture time that Postmaster got a socket from accept (for logging + * connection establishment and setup total duration). + */ + startup_data.socket_created = GetCurrentTimestamp(); + + /* * Allocate and assign the child slot. Note we must do this before * forking, so that we can handle failures (out of memory or child-process * slots) cleanly. |