Re: Improve the connection failure error messages - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Improve the connection failure error messages
Date
Msg-id 76155D82-5B97-41B1-B373-8BC6194AE522@yesql.se
Whole thread Raw
In response to Re: Improve the connection failure error messages  (Nisha Moond <nisha.moond412@gmail.com>)
Responses Re: Improve the connection failure error messages
List pgsql-hackers
> On 22 Mar 2024, at 11:42, Nisha Moond <nisha.moond412@gmail.com> wrote:

> Here is the v4 patch with changes required in slotfuncs.c and slotsync.c files.

-    errmsg("could not connect to the primary server: %s", err));
+    errmsg("\"%s\" could not connect to the primary server: %s", app_name.data, err));

Messages like this should perhaps have translator comments to indicate what the
leading "%s" will contain?

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Frédéric Yhuel
Date:
Subject: Re: New GUC autovacuum_max_threshold ?
Next
From: "Zhijie Hou (Fujitsu)"
Date:
Subject: RE: Improving the latch handling between logical replication launcher and worker processes.