Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hT7Bl-0004Mz-06 for pgsql-committers@arkaria.postgresql.org; Tue, 21 May 2019 16:00:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hT7Bj-0002Z5-1l for pgsql-committers@arkaria.postgresql.org; Tue, 21 May 2019 16:00:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hT7Bi-0002Yx-Nl for pgsql-committers@lists.postgresql.org; Tue, 21 May 2019 16:00:26 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hT7Bg-0003Ly-53 for pgsql-committers@lists.postgresql.org; Tue, 21 May 2019 16:00:25 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 68DB620E15; Tue, 21 May 2019 12:00:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 21 May 2019 12:00:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=4zQW24eEG2J5bggA3EKwYZx8N5I kl4+nnCTKgPs2yjU=; b=FrokJtFBNtcCk+b3QULIkbL1xPlLclhnkoaptgCo70c goSlVrrYfL3scmXtVUu1Oqzcrb7cFu8g5dNTqEOm3m3QuU1MYlk66QN8vSH1piQo WgXZDspFfE17C2SvMRDJuvql0XLuJ0KnhyH4/r5YG/ysAOF4jtYeBscwxWJeX59H k6sXF57fYMczHt9JN8rAbXI2uVHZqYLW4TxDXwM5fF4fpfKabVTBvBkvxomalIoM XLxd0VEHsop+GzS+vtRjloR6/BPwqFskGVx83tNy/QRhXWTGGWVr+T2qSKDGnVeD 7PG4dN78rfPkqWMMiWcExb2G/MA5+Zz/T1UUgnu6chA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm2; bh=4zQW24 eEG2J5bggA3EKwYZx8N5Ikl4+nnCTKgPs2yjU=; b=r7fbbuSceTHmygyzMLr/AP RUmFoLkbskOUO0cZFfDAboRkGXOjqEAXUccdy6CMQzR1f+tCRhpqPRofTwsWy/2R t/xOut09cQnAXVy+D2ig2UhYFYnfvNNzMneFyx/hcJiOvxmPl8xOkCkf840GpVCc QzkV1uCmJyQ0uqKrt/U5ENig1QHHESZXXlLCBSljRmNAVy/aEMngQyoHAl3OeWM/ Y5vf0pLROv0gWA1z5pheHOkbXk9fDmuvaF+oxRngRzwoWNkbc7feoPk1jXQ3mEjN e8l39N1dWofK46IXLVg7N4vZA6f+jmmNX72U7zKuX4bFYZ36aPwIWD9TpCMUqFyw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddutddgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkpheple ekrddvuddtrddugedtrddujedunecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgv shesrghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 17BF7103DB; Tue, 21 May 2019 12:00:22 -0400 (EDT) Date: Tue, 21 May 2019 09:00:20 -0700 From: Andres Freund To: Tom Lane Cc: Peter Eisentraut , Michael Paquier , Fujii Masao , Fujii Masao , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Make VACUUM accept 1 and 0 as a boolean value. Message-ID: <20190521160020.wckjt7ggkwzwr4cj@alap3.anarazel.de> References: <20190520163652.l7ibpe52pbq6lecc@alap3.anarazel.de> <20190520164908.t653bdbfjcn3d35p@alap3.anarazel.de> <23559.1558374415@sss.pgh.pa.us> <20190520180027.zyxosts5yrf2i7mh@alap3.anarazel.de> <24497.1558375780@sss.pgh.pa.us> <20190520203505.zoeitjlehqypgx26@alap3.anarazel.de> <21766.1558397960@sss.pgh.pa.us> <20190521004717.qsktdsugj3shagco@alap3.anarazel.de> <15696.1558448457@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15696.1558448457@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-05-21 10:20:57 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2019-05-20 20:19:20 -0400, Tom Lane wrote: > >> The other thing I had to do below was to suppress "NOTICE: database > >> "regression" does not exist, skipping". The added createdb is a > >> mighty expensive and grotty way to do that, but I didn't immediately > >> see a better one. > > > Hm. Perhaps we ought to just have pg_regress set client_min_messages to > > something less noisy when running DROP DATABASE? I don't think any > > pg_regress caller benefits from having it. > > The least invasive way to do that seems to be as attached, building a > little knowledge into pg_regress's psql_command() function. Alternatively > we could add a "bool quiet" parameter to that function so that callers > had to say what to do, but I'm not sure that's an improvement. It's not overly pretty, but also not that bad. I was wondering whether we could make psql_command accept multiple statements (annoying due to argument passing - although I guess we could switch to using numeric references to arguments), use putenv to put client_min_messages into PGOPTIONS (to finnicky to remove again), have psql_command pass the command to psql via stdin (more code needed for pipe setup). So I think we can just go with what you're proposing. Although I also could just go with always supressing notices in psql_command(). Greetings, Andres Freund