Re: [Proposal] Adding Log File Capability to pg_createsubscriber

From: shveta malik <shveta(dot)malik(at)gmail(dot)com>
To: Gyan Sreejith <gyan(dot)sreejith(at)gmail(dot)com>
Cc: vignesh C <vignesh21(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Euler Taveira <euler(at)eulerto(dot)com>, "kuroda(dot)hayato(at)fujitsu(dot)com" <kuroda(dot)hayato(at)fujitsu(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Peter Smith <smithpb2250(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com>
Subject: Re: [Proposal] Adding Log File Capability to pg_createsubscriber
Date: 2026-03-17 06:05:53
Message-ID: CAJpy0uBPvz6S9VE8sLYmoju4BGYh94uks+UTocPdD094xqmZ2w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Mar 16, 2026 at 4:53 AM Gyan Sreejith <gyan(dot)sreejith(at)gmail(dot)com> wrote:
>
>
> Thank you! I have attached the changes.

Thank You for the patch.

1)
I observed that when we give both --verbose and --logdir options, it
skips verbose and only dumps logs to logdir. Is this intentional?

I don't see any other postgres command with both the options provided
and thus cannot compare the behaviour. But IMO, if the user has
explicitly given both options, we should dump the log on both (stdout
and logfile). Thoughts? (Apologies if this has already been discussed
and I missed it.)

2)
I noticed a minor difference when running the command with both
--verbose and --logdir, depending on the order in which they are
specified.

If --verbose is specified first, I see the following message on the console:
pg_createsubscriber: directory ../../pg_createsub/20260317T112204.848 created

But if --logdir is specified first, this message does not appear on
the console. Is this behavior intentional?

thanks
Shveta

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chao Li 2026-03-17 06:14:29 Re: tablecmds: reject CLUSTER ON for partitioned tables earlier
Previous Message Ashutosh Bapat 2026-03-17 06:05:32 Re: SQL Property Graph Queries (SQL/PGQ)