From: | Shubham Khanna <khannashubham1197(at)gmail(dot)com> |
---|---|
To: | Peter Smith <smithpb2250(at)gmail(dot)com> |
Cc: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com> |
Subject: | Re: Enhance 'pg_createsubscriber' to retrieve databases automatically when no database is provided. |
Date: | 2025-02-13 03:27:49 |
Message-ID: | CAHv8RjKVRO6UFx74GA_EHbvdNsPeJ5Dbguxqb80H5m89X+_kiw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Feb 13, 2025 at 4:48 AM Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
>
> Some review comments for v7-0001
>
> ======
> src/bin/pg_basebackup/pg_createsubscriber.c
>
> 1.
> + /* Error if no databases were found on the source server */
> + if (num_rows == 0)
> + {
> + pg_log_error("no convertable databases found on the source server");
> + pg_log_error_hint("Ensure that there are non-template and
> connectable databases on the source server.");
> + PQclear(res);
> + disconnect_database(conn, false);
> + exit(1);
> + }
>
> 1a.
> The spelling is "convertible", not "convertable"
>
> ~
>
> 1b.
> What does "convertible databases" mean here, and will that term make
> sense to a user? How are we "converting" the source server databases;
> AFAIK we are simply connecting to them and adding publications.
>
> IMO a better choice of adjectives can be found below.
> "no suitable databases found..."
> "no appropriate databases found..."
> "no eligible databases found..."
> etc.
>
Fixed.
The attached patch contains the required changes.
Thanks and regards,
Shubham Khanna.
Attachment | Content-Type | Size |
---|---|---|
v8-0001-Enhance-pg_createsubscriber-to-fetch-and-append-a.patch | application/octet-stream | 15.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2025-02-13 04:15:58 | Re: BitmapHeapScan streaming read user and prelim refactoring |
Previous Message | Jeff Davis | 2025-02-13 03:00:55 | Re: Statistics Import and Export |