Re: Enhances pg_createsubscriber documentation for the -d option.

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: vignesh C <vignesh21(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Enhances pg_createsubscriber documentation for the -d option.
Date: 2025-02-26 09:05:16
Message-ID: CAA4eK1J3fdNnACpyUaKty061Hb19o=jSB_QpTD0h9EV1f+wagQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Feb 26, 2025 at 11:34 AM vignesh C <vignesh21(at)gmail(dot)com> wrote:
>
> Currently, pg_createsubscriber converts streaming replication to
> logical replication using the specified database name. If the database
> name is not provided, it is obtained from the --publisher-server
> option. If the database name is not specified in either the --database
> or --publisher-server option, an error is reported. This behavior is
> not documented. The attached patch includes the necessary
> documentation updates.
>

<para>
The name of the database in which to create a subscription. Multiple
databases can be selected by writing multiple <option>-d</option>
- switches.
+ switches. If this option is not provided, the database name will be
+ obtained from <option>-P</option>. If the database name is not specified
+ in either the <option>-d</option> option or <option>-P</option>, an
+ error is reported.

How about changing it slightly as follows to make it clear: "If
<option>-d</option>option is not provided, the database name will be
obtained from <option>-P</option>. If the database name is not
specified in either the <option>-d</option> option or
<option>-P</option>, an error will be reported."?

--
With Regards,
Amit Kapila.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Corey Huinker 2025-02-26 09:25:29 Re: Statistics Import and Export
Previous Message Andres Freund 2025-02-26 08:54:17 Re: Proposal: Limitations of palloc inside checkpointer