Re: Log prefix missing for subscriber log messages received from publisher

From: vignesh C <vignesh21(at)gmail(dot)com>
To: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
Cc: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Log prefix missing for subscriber log messages received from publisher
Date: 2025-07-19 06:45:31
Message-ID: CALDaNm1J4i5Ryg2WksxPpsqr7od9qCqueQh5L0B=YvRXLdf0VQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, 19 Jul 2025 at 01:39, Álvaro Herrera <alvherre(at)kurilemu(dot)de> wrote:
>
> On 2025-Jul-18, vignesh C wrote:
>
> > diff --git a/contrib/postgres_fdw/connection.c b/contrib/postgres_fdw/connection.c
> > index 304f3c20f83..c1ce6f33436 100644
> > --- a/contrib/postgres_fdw/connection.c
> > +++ b/contrib/postgres_fdw/connection.c
> > @@ -625,6 +625,9 @@ connect_pg_server(ForeignServer *server, UserMapping *user)
> > server->servername),
> > errdetail_internal("%s", pchomp(PQerrorMessage(conn)))));
> >
> > + PQsetNoticeReceiver(conn, libpqsrv_notice_receiver,
> > + "received message via remote connection");
> > +
>
> These need to be:
>
> PQsetNoticeReceiver(conn, libpqsrv_notice_receiver,
> gettext_noop("received message via remote connection"));
>
> so that the strings are picked up by gettext.

Modified

> Also, I don't see why there are three patches here instead of just one.

Earlier we thought to commit replication changes function firstlly and
then commit dblink and fdw changes, but now that we are using a common
notice receiver function. I feel it can be a single patch. Merged the
patches. The attached v7 version patch has the changes for the same.

Regards,
Vignesh

Attachment Content-Type Size
v7-0001-Add-custom-PQsetNoticeReceiver-handlers-for-repli.patch text/x-patch 4.6 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael J. Baars 2025-07-19 09:38:48 Re: Lossless transmission of double precision floating point
Previous Message Michael Paquier 2025-07-19 06:05:56 Re: Improve error reporting in 027_stream_regress test