Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit689d15e

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 isbeginning, and it's useful for tracking the server version acrossstartup while upgrading.Author: Christoph Berg <christoph.berg@credativ.de>Discussion:https://www.postgresql.org/message-id/flat/20181121144611.GJ15795@msg.credativ.de/
1 parent57431a9 commit689d15e

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)

[8]ページ先頭

©2009-2025 Movatter.jp