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/
20181121144611[email protected]/
whereToSendOutput = DestNone;
+ /* Report server startup in log */
+ ereport(LOG,
+ (errmsg("starting %s", PG_VERSION_STR)));
+
/*
* Establish input sockets.
*