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

Commitaf20515

Browse files
committed
Add the database name to the ps display of logical WAL senders
Logical WAL senders display now as follows, gaining a database name:postgres: walsender USER DATABASE HOST(PORT) STATEPhysical WAL senders show up the same, as of:postgres: walsender USER HOST(PORT) STATEThis information was missing, hence it was not possible to know from psif a WAL sender was a logical or a physical one, and on which databaseit is connected when it is logical.Author: Tatsuhiro NakamoriReviewed-by: Fujii Masao, Bharath RupireddyDiscussion:https://postgr.es/m/36a3b137e82e0ea9fe7e4234f03b64a1@oss.nttdata.com
1 parenta54b658 commitaf20515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4365,7 +4365,7 @@ BackendInitialize(Port *port)
43654365
if (am_walsender)
43664366
appendStringInfo(&ps_data,"%s ",GetBackendTypeDesc(B_WAL_SENDER));
43674367
appendStringInfo(&ps_data,"%s ",port->user_name);
4368-
if (!am_walsender)
4368+
if (port->database_name[0]!='\0')
43694369
appendStringInfo(&ps_data,"%s ",port->database_name);
43704370
appendStringInfoString(&ps_data,port->remote_host);
43714371
if (port->remote_port[0]!='\0')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp