Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tZybn-00EtCv-Jh for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Jan 2025 20:42:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tZybm-006Les-OT for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Jan 2025 20:42:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tZybl-006LeE-Mk for pgsql-hackers@lists.postgresql.org; Mon, 20 Jan 2025 20:42:54 +0000 Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tZybh-000b31-23 for pgsql-hackers@lists.postgresql.org; Mon, 20 Jan 2025 20:42:53 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 2A80E1140177; Mon, 20 Jan 2025 15:42:48 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Mon, 20 Jan 2025 15:42:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1737405768; x=1737492168; bh=vzkSuMlBDp 3NIRfMw0KXXucuNE2eKBY4BWR4H3MxEAY=; b=P9XqUG/zEkd4c1EN/skBPGr35X UKyDpl2zLN1SJp8qpltBo9oCu5JEwWwV5yAwbeBdVviBm4KJod+tvmeJhM/VVlgM GoHPzOzd5Soo0Ky7zbjMUTLupSEKkTiroI1YAEFhekpJ8zxkNjX3xnotUyt2tzgX SY4McrqY0k7VoQ2OO54+j+1gGFZ6uF+97BTYQbTA7B9VXOdLwfjM28A8/mWW6xWB dzrG7P+Iu+b0dGlzpvgncKktPYvOG/IjRWT4HwZCmm5VZI/astYK0qjA2RvkRRCA k7yEBbeDOiVm7xPM1Vj/jcW3wg3tI3LG8a5TPy481H1ynC6000kWBzLwuokg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1737405768; x=1737492168; bh=vzkSuMlBDp3NIRfMw0KXXucuNE2eKBY4BWR 4H3MxEAY=; b=stS5HJO9zRZSLgeAmA4xquySz9UxfVcTin2oGIvQWv77XA6C8Fk ZYm+lMZPDZ84ZMXXelQlOh0OPa7+AUuameN055STMY5Ub+mG53eMurB/iIcrC+pe 6its2wxxR4+8HkHi8N0QrGzOn/y+ivHIIoaC+8Mf/Jn2QBmibTTwgOcGoAm9kjVG NGAvctqGdspvBukNes6Dr27Dm2Egs7ALLXZ121NbM7iCFITRdBx39W1kWr5YEsI8 9Ywe+L9pyY067LWX1rqAmJkfDQKsUYiCgIdqOmR7OZgUOgRyFQ+ah7TwtkR1IBvv GazPZMaYUxOxoXyRN9DLdMXIjVmWBnPJTFQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeiledgudefhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufhfffgjkfgfgggtsehttdertddtreej necuhfhrohhmpeffrghgfhhinhhnucfklhhmrghrihcuofgrnhhnshonkhgvrhcuoehilh hmrghrihesihhlmhgrrhhirdhorhhgqeenucggtffrrghtthgvrhhnpefhgfffleekgfej ieffgedthfeifeeivdehjeeghedvhfehkeeuveeuvdektdeifeenucffohhmrghinhepph hoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepihhlmhgrrhhisehilhhmrghrihdrohhrghdpnhgspghrtghpth htohepiedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghulhgvrhdrthgrvhgv ihhrrgesvghnthgvrhhprhhishgvuggsrdgtohhmpdhrtghpthhtohepphgvthgvrhesvg hishgvnhhtrhgruhhtrdhorhhgpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshes lhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepthhglhesshhssh drphhghhdrphgrrdhushdprhgtphhtthhopehmihgthhgrvghlsehprghquhhivghrrdig hiiipdhrtghpthhtohepshhmihhthhhpsgdvvdehtdesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Jan 2025 15:42:46 -0500 (EST) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Peter Smith Cc: Michael Paquier , Tom Lane , PostgreSQL Hackers , Peter Eisentraut , Euler Taveira Subject: Re: pg_createsubscriber TAP test wrapping makes command options hard to read. References: <556792.1733967676@sss.pgh.pa.us> <564915.1733971586@sss.pgh.pa.us> <87pllx5cqn.fsf@wibble.ilmari.org> <87msh159c3.fsf@wibble.ilmari.org> Date: Mon, 20 Jan 2025 20:42:45 +0000 In-Reply-To: (Peter Smith's message of "Tue, 14 Jan 2025 18:03:23 +1100") Message-ID: <87o70143p6.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Peter, Peter Smith writes: > Hi, > > 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've Cc-ed both Peter (the committer) and Euler (the author) in case they have any insight. > ~~ > > # Run pg_createsubscriber on node S > command_ok( > [ > - 'pg_createsubscriber', '--verbose', > - '--recovery-timeout', "$PostgreSQL::Test::Utils::timeout_default", > - '--verbose', '--pgdata', > - $node_s->data_dir, '--publisher-server', > - $node_p->connstr($db1), '--socketdir', > - $node_s->host, '--subscriber-port', > - $node_s->port, '--publication', > - 'pub1', '--publication', > - 'Pub2', '--replication-slot', > - 'replslot1', '--replication-slot', > - 'replslot2', '--database', > - $db1, '--database', > - $db2 > + 'pg_createsubscriber', > + '--verbose', > + '--recovery-timeout' => $PostgreSQL::Test::Utils::timeout_default, > + '--pgdata' => $node_s->data_dir, > + '--publisher-server' => $node_p->connstr($db1), > + '--socketdir' => $node_s->host, > + '--subscriber-port' => $node_s->port, > + '--publication' => 'pub1', > + '--publication' => 'pub2', > + '--replication-slot' => 'replslot1', > + '--replication-slot' => 'replslot2', > + '--database' => $db1, > + '--database' => $db2, > ], > 'run pg_createsubscriber on node S'); > > > ====== > [1] https://www.postgresql.org/docs/devel/app-pgcreatesubscriber.html > > Kind Regards, > Peter Smith. > Fujitsu Australia