mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-02 14:11:21 +02:00
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/
This commit is contained in:
parent
57431a911d
commit
689d15e95e
@ -1052,6 +1052,10 @@ PostmasterMain(int argc, char *argv[])
|
|||||||
|
|
||||||
whereToSendOutput = DestNone;
|
whereToSendOutput = DestNone;
|
||||||
|
|
||||||
|
/* Report server startup in log */
|
||||||
|
ereport(LOG,
|
||||||
|
(errmsg("starting %s", PG_VERSION_STR)));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Establish input sockets.
|
* Establish input sockets.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user