Re: Adding a '--clean-publisher-objects' option to 'pg_createsubscriber' utility.

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Peter Smith <smithpb2250(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: Shubham Khanna <khannashubham1197(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Euler Taveira <euler(at)eulerto(dot)com>, Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Adding a '--clean-publisher-objects' option to 'pg_createsubscriber' utility.
Date: 2025-06-22 15:47:06
Message-ID: ed9a5585-36aa-46f1-9a37-0814b3c6b9fd@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 18.06.25 07:49, Peter Smith wrote:
>>> I'm also suggesting that "clean" or "cleanup" may be even better than
>>> "drop". Because if you look at related tools such as pg_basebackup,
>>> pg_receivewal, etc., the "create" and "drop" actions all happen on the
>>> remote instance, but what we are talking about here happens on the local
>>> (new) instance, so a slightly different term from those might be
>>> appropriate. Moreover, "clean(up)" has a connotation "don't need it
>>> anymore", which is fitting for this.
>>>
>>
>> I am fine with changing the name to "clean" or "cleanup" as it has
>> some precedence as well but would like to see if Peter or David has
>> any opinion on this, as they were previously involved in naming this
>> option.
>>
>
> My original comment was only considering the resulting action so at
> the time I felt "cleaning" publications made less sense to me than
> just saying what was really happening ("dropping" the publications).
>
> But I was not taking into account any precedent from other command
> option names. So if "clean" is already a precedent, then I am fine
> with calling this option clean too.

Here is a patch with a straight rename from --remove to --clean,
dropping the short option. I'm not planning to do anything about the
argument format.

Attachment Content-Type Size
0001-pg_createsubscriber-Rename-option-remove-to-clean.patch text/plain 10.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vik Fearing 2025-06-22 16:23:05 Re: Huge commitfest app update upcoming: Tags, Draft CF, Help page, and automated commitfest creat/open/close
Previous Message David G. Johnston 2025-06-22 14:21:36 Re: Huge commitfest app update upcoming: Tags, Draft CF, Help page, and automated commitfest creat/open/close