Re: pg_createsubscriber --dry-run logging concerns

Euler Taveira <euler@eulerto.com>

From: "Euler Taveira" <euler@eulerto.com>
To: "Peter Eisentraut" <peter@eisentraut.org>, "Peter Smith" <smithpb2250@gmail.com>, Álvaro Herrera <alvherre@kurilemu.de>
Cc: "Chao Li" <li.evan.chao@gmail.com>, "kuroda.hayato@fujitsu.com" <kuroda.hayato@fujitsu.com>, "PostgreSQL Hackers" <pgsql-hackers@lists.postgresql.org>
Date: 2026-06-29T20:14:41Z
Lists: pgsql-hackers
On Mon, Jun 29, 2026, at 10:56 AM, Peter Eisentraut wrote:
>
> I have a follow-up for this.  Earlier in this thread it was asked to 
> combine the dry-run info message into one string with a newline.  But I 
> think this doesn't really fit the message style guidelines.  I suggest 
> to use a primary plus detail style here too.  How about the attached patch?
>

LGTM.


-- 
Euler Taveira
EDB   https://www.enterprisedb.com/



Commits

  1. Split dry-run messages into primary and detail

  2. Log a note at program start when running in dry-run mode

  3. Use USECS_PER_SEC from datatype/timestamp.h

  4. Remove WaitPMResult enum in pg_createsubscriber

  5. pg_createsubscriber: reword dry-run log messages