2022-10-07 16:59  Fujii Masao wrote:

s/subscriber/publisher ?

I did not understand what this means.

Thanks for the patch!

-
+               printf("fork child process\n");
+               printf("   am_walsender: %d\n", am_walsender);
+               printf("   am_db_walsender: %d\n", am_db_walsender);

The patch seems to include the debug code accidentally.
Except this, the patch looks good to me.

I apologize for the silly mistake.
I edited the patch and attached it to this mail.

Best,
Tatsuhiro Nakamori
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index 383bc4776e..e17b62e155 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -4451,7 +4451,7 @@ BackendInitialize(Port *port)
 	if (am_walsender)
 		appendStringInfo(&ps_data, "%s ", GetBackendTypeDesc(B_WAL_SENDER));
 	appendStringInfo(&ps_data, "%s ", port->user_name);
-	if (!am_walsender)
+	if (!am_walsender || am_db_walsender)
 		appendStringInfo(&ps_data, "%s ", port->database_name);
 	appendStringInfoString(&ps_data, port->remote_host);
 	if (port->remote_port[0] != '\0')

Reply via email to