Re: pg_createsubscriber --dry-run logging concerns

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Álvaro Herrera <alvherre@kurilemu.de>, Peter Smith <smithpb2250@gmail.com>
Cc: Chao Li <li.evan.chao@gmail.com>, Euler Taveira <euler@eulerto.com>, "kuroda.hayato@fujitsu.com" <kuroda.hayato@fujitsu.com>, "L. pgsql-hackers" <pgsql-hackers@lists.postgresql.org>
Date: 2026-07-01T08:21:50Z
Lists: pgsql-hackers
On 29.06.26 23:13, Álvaro Herrera wrote:
> On 2026-06-29, 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?
> 
> Yeah, that works for me.  It makes me wonder what was I thinking when I requested that newline.

Ok, done.




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