pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Euler Taveira <euler@eulerto.com>
To: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
To: Peter Smith <smithpb2250@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Peter Eisentraut <peter@eisentraut.org>
Cc: Euler Taveira <euler.taveira@enterprisedb.com>
Subject: Re: pg_createsubscriber TAP test wrapping makes command options hard to read.
Date: Mon, 20 Jan 2025 19:33:28 -0300
Message-ID: <3b6b2595-9822-4e4f-91ee-b6a44dc4b542@app.fastmail.com> (raw)
In-Reply-To: <87o70143p6.fsf@wibble.ilmari.org>
References: <CAHut+PvfaUZQR3rEnj-Dcg_6713Wu4yRdd-yZkkC9NVsARht8A@mail.gmail.com>
	<556792.1733967676@sss.pgh.pa.us>
	<CAHut+Ps6Q+i_3xS6H7ybw3-hx9+2QOuneTJwHArxqxFnKX5+4g@mail.gmail.com>
	<564915.1733971586@sss.pgh.pa.us>
	<CAHut+PvFGytgJT+K_e2x+uWKuVYCBR3HNaNtPKYEkO3YxAwZvw@mail.gmail.com>
	<Z1peKSb8roiDNgRj@paquier.xyz>
	<CAHut+PvYsVhF5k-mYHVEFdpijdgkYRtoeWVxdspxio0ePRpkug@mail.gmail.com>
	<87pllx5cqn.fsf@wibble.ilmari.org>
	<87msh159c3.fsf@wibble.ilmari.org>
	<CAHut+Ptmusd=7SdZ-n0=fu-Y8ut=UaK9nU4Cqk01wxOmio9nkA@mail.gmail.com>
	<87o70143p6.fsf@wibble.ilmari.org>

On Mon, Jan 20, 2025, at 5:42 PM, Dagfinn Ilmari Mannsåker wrote:
> Peter Smith <smithpb2250@gmail.com> writes:
> 
> >
> > In your v4 patch, there is a fragment (below) that replaces a  double
> > '--verbose' switch with just a single '--verbose'.
> >
> > As I have only recently learned, the '--verbose'' switch has a
> > cumulative effect [1], so the original double '--verbose' was probably
> > deliberate so it should be kept that way.
> 
> I was going to say that if it were deliberate, I would have expected the
> two `--verbose` swithces to be together, but then I noticed that the
> --recovery-timeout switch was added later (commit 04c8634c0c4d), rather
> haphazardly between them.  Still, I would have expected a comment as to
> why this command was being invoked extra-verbosely, but I'll restore it
> in the next version.

I ran pgperltidy before the final version and one of the things I didn't
understand at the time is why it is not stable. I just kept similar pattern
from other test files. Good to know that the fat comma has a nice formatting.
It is kind of annoying to keep version 20230309 around to run perltidy. Do we
have any other alternatives? (I know that perltidier is a hack to work around
some perltidy ugliness. Unfortunately, these pre/post filters are a sign that
perltidy does not intend to add such feature.)

The double --verbose is intentional to (i) show extra information and (ii) make
sure it won't break. The commit 04c8634c0c4 that added the recovery timeout
option separated the doubled verbose option; it was not intentional. We can
certainly keep them together.

I checked your patch with perltidy 20220613-1 and it looks good to me.


--
Euler Taveira
EDB   https://www.enterprisedb.com/

view thread (43+ messages)  latest in thread

Message-ID: <3b6b2595-9822-4e4f-91ee-b6a44dc4b542@app.fastmail.com>
Permalink:  ../3b6b2595-9822-4e4f-91ee-b6a44dc4b542@app.fastmail.com/
Also on:    postgresql.org/message-id/3b6b2595-9822-4e4f-91ee-b6a44dc4b542@app.fastmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: euler@eulerto.com, ilmari@ilmari.org, smithpb2250@gmail.com, michael@paquier.xyz, tgl@sss.pgh.pa.us, peter@eisentraut.org, euler.taveira@enterprisedb.com
  Subject: Re: pg_createsubscriber TAP test wrapping makes command options hard to read.
  In-Reply-To: <3b6b2595-9822-4e4f-91ee-b6a44dc4b542@app.fastmail.com>
  References: <CAHut+PvfaUZQR3rEnj-Dcg_6713Wu4yRdd-yZkkC9NVsARht8A@mail.gmail.com> <556792.1733967676@sss.pgh.pa.us> <CAHut+Ps6Q+i_3xS6H7ybw3-hx9+2QOuneTJwHArxqxFnKX5+4g@mail.gmail.com> <564915.1733971586@sss.pgh.pa.us> <CAHut+PvFGytgJT+K_e2x+uWKuVYCBR3HNaNtPKYEkO3YxAwZvw@mail.gmail.com> <Z1peKSb8roiDNgRj@paquier.xyz> <CAHut+PvYsVhF5k-mYHVEFdpijdgkYRtoeWVxdspxio0ePRpkug@mail.gmail.com> <87pllx5cqn.fsf@wibble.ilmari.org> <87msh159c3.fsf@wibble.ilmari.org> <CAHut+Ptmusd=7SdZ-n0=fu-Y8ut=UaK9nU4Cqk01wxOmio9nkA@mail.gmail.com> <87o70143p6.fsf@wibble.ilmari.org> <3b6b2595-9822-4e4f-91ee-b6a44dc4b542@app.fastmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox