| From: | Peter Smith <smithpb2250(at)gmail(dot)com> |
|---|---|
| To: | Álvaro Herrera <alvherre(at)kurilemu(dot)de> |
| Cc: | Chao Li <li(dot)evan(dot)chao(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>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: pg_createsubscriber --dry-run logging concerns |
| Date: | 2025-11-10 04:00:03 |
| Message-ID: | CAHut+PvYQZ+XdMZwWf+V-Hz=3JjN-F-X5jUAcnJEBKP01msAjA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Tue, Nov 4, 2025 at 10:23 PM Álvaro Herrera <alvherre(at)kurilemu(dot)de> wrote:
>
> On 2025-Nov-04, Peter Smith wrote:
>
> > On Sat, Nov 1, 2025 at 5:02 AM Álvaro Herrera <alvherre(at)kurilemu(dot)de> wrote:
>
> > > I'm not opposed to 0001 (to master only), but I think the lines of
> > > dashes are a little excessively noisy. Are there other opinions on
> > > that? Note that vacuumlo also has it, with no dashes.
> >
> > It was intentionally "noisy" with dashes to make it impossible to
> > accidentally overlook dry-run mode in the logs. But if that's contrary
> > to the way Postgres does things I am fine if you want to remove the
> > dashes.
>
> Yeah, I don't know if it's The Postgres Way or just accidental, but I'd
> rather stay away from that kind of noise. Also, from a i18n point of
> view, the lines of dashes (as implemented here) would get in the message
> catalogs, which nobody will appreciate. Please do make the messages a
> single string rather than two separate strings though, perhaps with an
> embedded newline if more than one line of output is needed.
>
Hi Alvaro,
Here is patch v4-0001 modified as requested:
- dashes are removed
- the message is a single string
======
Kind Regards,
Peter Smith.
Fujitsu Australia
| Attachment | Content-Type | Size |
|---|---|---|
| v4-0001-log-to-say-command-is-executing-in-dry-run-mode.patch | application/octet-stream | 3.2 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2025-11-10 04:45:39 | Re: Suggestion to add --continue-client-on-abort option to pgbench |
| Previous Message | Philip Warner | 2025-11-10 03:43:33 | Re: pg_dump not dumping default_text_search_config WAI? |