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 1rD4iL-000pLA-4M for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Dec 2023 15:30:29 +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 1rD4iJ-005uCC-Af for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Dec 2023 15:30:27 +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 1rD4iH-005uC3-PD for pgsql-hackers@lists.postgresql.org; Tue, 12 Dec 2023 15:30:27 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rD4iE-00BbP0-3x for pgsql-hackers@postgresql.org; Tue, 12 Dec 2023 15:30:25 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 90FDF5C033B; Tue, 12 Dec 2023 10:30:19 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 12 Dec 2023 10:30:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1702395019; x= 1702481419; bh=u7yjIYFvDTqdzL+6rvWvbuKxPu3cMNHBbREwbp+rJ8Y=; b=s 8+22tNpDn0kVmD3qRFbw44GeZvGsD32JWdf8EkfigosHKuCP7X0Ae/RbNnctE3yW 4FeuFOEEodIKLndYLP02wQzGn4GVcav+mayxBMz8D2vDX8SYaVK2GB9mwYu0R+Sc 2+HkUgMv1z4WjQzYTRKZ2zFi7ci76YI7qDUGpKe/ks3U9yzOg6FvIwDHe9If6KDv eYzhaLU0H0jL6dAheOWr3xaVDAe1Frjv+yBFqu3WbTjzMrkmzfijt/kryVOuqg45 wQ2kjPUs4loQC7b7J3V0BZ8j5PZQ+u1BFAb2PA4Z4QqE2j1bZ/nH3RYj3T+fKs65 F62eUH0QbS3s+eM6mUcRA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudelgedgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepgfdtgeelgefgffdtieduudffhfevkefgudefteehgfet hfekvdegjeelhfethedvnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh dpphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Dec 2023 10:30:17 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1702395001; bh=J++DJI6N87+UiEn9jMNjZrk+mEo9JegTiRjdLufWiPQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=BmINlCmyFE0QX/X2NCT3r+YBSk2DYXT53VKnmjam1zQZ/eFv9AOHXXfzyKWruXWJS taN2SHyrz3N0k8NRkQdIQJfSF0dQ/qViKlvyXgoymVEGIJccKMVCbolk7LalM883Kr 4ievFUdpS2F44UsJIOeyaG6VCuYodjtqtzqor0xAWsD+QWN/dAj5O5jPEvUHIy0yka 9AFGoD8tHED1x2OEWaM3FMy/tX/y9ioeuCkEUBPFA/lMOy9T6MzLeJWPfh+PBAmnde Ug50CfRY/2kCJtAv1KW4dQSw4wQb/2CzuUVb9wu0kO5zWJ2Y1MYVCNrHqBvTGmZ4So CbPZ0bFZH1aBg== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id C4A3C3B5; Tue, 12 Dec 2023 16:30:01 +0100 (CET) Date: Tue, 12 Dec 2023 16:30:01 +0100 From: Alvaro Herrera To: Tom Lane Cc: Euler Taveira , Michael Banck , Daniel Gustafsson , Tristan Partin , pgsql-hackers Subject: Re: Add --check option to pgindent Message-ID: <202312121530.7vztxm3bfyrx@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2437426.1702394280@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Dec-12, Tom Lane wrote: > "Euler Taveira" writes: > > When you add exceptions, it starts to complicate the UI. > > Indeed. It seems like --silent-diff was poorly defined and poorly > named, and we need to rethink that option along the way to adding > this behavior. The idea that --show-diff and --silent-diff can > be used together is just inherently confusing, because they sound > like opposites. Maybe it's enough to rename --silent-diff to --check. You can do "--show-diff --check" and get both the error and the diff printed; or just "--check" and it'll throw an error without further ado; or "--show-diff" and it will both apply the diff and print it. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "I must say, I am absolutely impressed with what pgsql's implementation of VALUES allows me to do. It's kind of ridiculous how much "work" goes away in my code. Too bad I can't do this at work (Oracle 8/9)." (Tom Allison) http://archives.postgresql.org/pgsql-general/2007-06/msg00016.php