Skip to content

Commit 689d15e

Browse files
committed
Log PostgreSQL version number on startup
Logging the PostgreSQL version on startup is useful for two reasons: There is a clear marker in the log file that a new postmaster is beginning, and it's useful for tracking the server version across startup while upgrading. Author: Christoph Berg <christoph.berg@credativ.de> Discussion: https://www.postgresql.org/message-id/flat/20181121144611.GJ15795@msg.credativ.de/
1 parent 57431a9 commit 689d15e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,10 @@ PostmasterMain(int argc, char *argv[])
10521052

10531053
whereToSendOutput = DestNone;
10541054

1055+
/* Report server startup in log */
1056+
ereport(LOG,
1057+
(errmsg("starting %s", PG_VERSION_STR)));
1058+
10551059
/*
10561060
* Establish input sockets.
10571061
*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy