Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGJzS-00074u-0C for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Aug 2021 11:44:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mGJzQ-0003vN-Uw for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Aug 2021 11:44:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGJzQ-0003hO-0r for pgsql-bugs@lists.postgresql.org; Wed, 18 Aug 2021 11:44:12 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGJzL-0005jg-4N for pgsql-bugs@lists.postgresql.org; Wed, 18 Aug 2021 11:44:11 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A69E85C0121; Wed, 18 Aug 2021 07:44:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 18 Aug 2021 07:44:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=cf2xvgQqrKG4KWyOisLX5OhnJWy8BIZ+Ya9lCF/3Q O8=; b=rKEQUBIGvM68kW8KG5CvpprGgp6ZHUjttmWkEsN5dsjyRvhX6Pc3+fO/F wEUZZTACL7rFK692KGPFZsTYYt/s6lHoBkVrPKbmi4APORkE0jK8EwMRVxbgANWt 8KdkxpO4/SU+BDeseVtghX59gvs16k5QsWSTbtXFo84C4CdDapHbnCyztKSj+j1i xCGnHoFkTh84rpdQW7PmEYjnrkd7hTlaJGm65LqavQ+F9nXnm+OTjMJcymInZmLf 8L9Chfc9lekf5fiWo1KfGrV7lOoS5bZaJHW95HJV8jY7JCGcC/rZn3Ez8kntTCGf kK4Zfu7G30q76UdUfTZjItpH4Pvgw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrleehgdegfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrh hprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeekheeihedvgeeugefhffeu leeivdfgiefghfehvedvgeefgfefteegjedujeejheenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 18 Aug 2021 07:44:02 -0400 (EDT) Subject: Re: BUG #17148: About --no-strict-names option and --quiet option of pg_amcheck command To: Euler Taveira , Daniel Gustafsson Cc: chenjq.jy@fujitsu.com, pgsql-bugs@lists.postgresql.org, Julien Rouhaud References: <17148-b5087318e2b04fc6@postgresql.org> <429f6e0e-31eb-4741-8bf8-e9e827b3076d@www.fastmail.com> From: Peter Eisentraut Message-ID: Date: Wed, 18 Aug 2021 13:44:00 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <429f6e0e-31eb-4741-8bf8-e9e827b3076d@www.fastmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 17.08.21 19:00, Euler Taveira wrote: >> Well, problem is that it’s plain not true.  If you pass --quiet >> --verbose you >> will get a lot of output, albeit less than if not using --quiet. >> Consistency >> with other tools is obviously good, but only when it’s correct IMO. > Indeed, it is not a good design. It should be one option --verbose that > increases the verbosity according to a number or an enum value. --verbose=0 > means "quiet". However, that ship has sailed. I was confused by this the other day as well. Having all of -q, --quiet don't write any messages -P, --progress show progress information -v, --verbose write a lot of output is surely a lot. If you look at what --quiet does, it 1) disables logging warnings if there are no matches for object patterns and --no-strict-names is given, and 2) sets PQsetErrorVerbosity(free_slot->connection, PQERRORS_TERSE). I think this both of these things could be deleted and we could get rid of the --quiet option, to simplify all this. Neither of these behaviors is in common with any other PostgreSQL tool.