Re: Improvement in log message of logical replication worker

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Improvement in log message of logical replication worker
Date: 2017-05-24 23:06:50
Message-ID: b170309f-15e3-be77-cd37-b8773e064093@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 5/20/17 00:58, Alvaro Herrera wrote:
> Umm, just skimming here -- this patch shows some LOG messages using
> elog() rather than ereport(), which seems bogus to me.

Fixed that.

> Also:
> "logical replication table synchronization worker for subscription \"%s\", table \"%s\" has started"
> surely there is a more convenient name than "logical replication table
> synchronization worker" for this process? I think just getting rid of
> the words "logical replication" there would be sufficient, since we
> don't have the concept of "table synchronization worker" in any other
> context.

We could look into that, but then we'd have a review all the log
messages so they are consistent.

> More generally, the overall wording of this message seems a bit off.
> How about something along the lines of
> "starting synchronization for table \"%s\" in subscription \"%s\""
> ?

There is of course a difference between "starting" and "has started".
We used to have both of these messages, now we only have the latter by
default.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2017-05-24 23:16:28 Re: pg_dump ignoring information_schema tables which used in Create Publication.
Previous Message Peter Eisentraut 2017-05-24 23:04:25 Re: Improvement in log message of logical replication worker