pg_basebackup -k option

Started by Peter Eisentrautalmost 8 years ago6 messageshackers
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

The new pg_basebackup -k option stands for --no-verify-checksums. That
is nearly the opposite of initdb -k, which is for enabling checksums. I
think it could be confusing to have two related tools use the same
option letter for nearly opposite purposes.

How about using capital -K in pg_basebackup? Or maybe it doesn't need a
short option at all.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In reply to: Peter Eisentraut (#1)
Re: pg_basebackup -k option

Hi
I think having only long option is enough

regards, Sergei

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#1)
Re: pg_basebackup -k option

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:

The new pg_basebackup -k option stands for --no-verify-checksums. That
is nearly the opposite of initdb -k, which is for enabling checksums. I
think it could be confusing to have two related tools use the same
option letter for nearly opposite purposes.

How about using capital -K in pg_basebackup? Or maybe it doesn't need a
short option at all.

+1 for no short option.

regards, tom lane

#4Michael Banck
michael.banck@credativ.de
In reply to: Tom Lane (#3)
Re: pg_basebackup -k option

Hi,

On Fri, May 18, 2018 at 10:46:37AM -0400, Tom Lane wrote:

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:

The new pg_basebackup -k option stands for --no-verify-checksums. That
is nearly the opposite of initdb -k, which is for enabling checksums. I
think it could be confusing to have two related tools use the same
option letter for nearly opposite purposes.

How about using capital -K in pg_basebackup? Or maybe it doesn't need a
short option at all.

+1 for no short option.

Makes sense to me, I wasn't happy about the -k back then (and I think I
solicited feedback on that).

PFA a patch which should remove the short option.

Michael

--
Michael Banck
Projektleiter / Senior Berater
Tel.: +49 2166 9901-171
Fax: +49 2166 9901-100
Email: michael.banck@credativ.de

credativ GmbH, HRB M�nchengladbach 12080
USt-ID-Nummer: DE204566209
Trompeterallee 108, 41189 M�nchengladbach
Gesch�ftsf�hrung: Dr. Michael Meskes, J�rg Folz, Sascha Heuer

Attachments:

pg_basebackup_verify_checksums_no_short_option.patchtext/x-diff; charset=us-asciiDownload+3-3
#5Magnus Hagander
magnus@hagander.net
In reply to: Tom Lane (#3)
Re: pg_basebackup -k option

On Fri, May 18, 2018 at 4:46 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:

The new pg_basebackup -k option stands for --no-verify-checksums. That
is nearly the opposite of initdb -k, which is for enabling checksums. I
think it could be confusing to have two related tools use the same
option letter for nearly opposite purposes.

How about using capital -K in pg_basebackup? Or maybe it doesn't need a
short option at all.

+1 for no short option.

+1 for that choice as well.

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/&gt;
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/&gt;

#6Peter Eisentraut
peter_e@gmx.net
In reply to: Michael Banck (#4)
Re: pg_basebackup -k option

On 5/18/18 11:26, Michael Banck wrote:

How about using capital -K in pg_basebackup? Or maybe it doesn't need a
short option at all.

+1 for no short option.

Makes sense to me, I wasn't happy about the -k back then (and I think I
solicited feedback on that).

PFA a patch which should remove the short option.

committed (needed test and documentation adjustments, too)

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services