Thanks to visit codestin.com
Credit goes to github.com

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 <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/[email protected]/
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)