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 1hSswB-0007kR-JM for pgsql-committers@arkaria.postgresql.org; Tue, 21 May 2019 00:47:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hSswA-0003A8-5F for pgsql-committers@arkaria.postgresql.org; Tue, 21 May 2019 00:47:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hSsw9-0003A1-3j for pgsql-committers@lists.postgresql.org; Tue, 21 May 2019 00:47:25 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hSsw5-00085X-W9 for pgsql-committers@lists.postgresql.org; Tue, 21 May 2019 00:47:24 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8B5DE23622; Mon, 20 May 2019 20:47:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 20 May 2019 20:47:20 -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=NhbyjE/YeENTRU7FVDnqwB5Ojuz f1ddEnus1hH+s55g=; b=eHiUd2Zm99kteeuu5rc2BOhW89075xbqgHsD0Gv7J27 OriWEqABghzNI61VobHjKHj27rQ4QUGt+VtWF2VKEb3/hP2mLlmynbspByFKuwBv ttPDyi53T4PpTbXLonGXeiKQ1ivs4ccoH25iT5Zx+OGhSP/3qiRc3wmVAuqWQS2o gvkrHzyRapiSBkWQ9CL4p+sbGtnrSeEsoqtkYdaua3RVoxvoF+pANxydB/IUnYVH ix6jkYcdZI8x9+CsufQCitfpcuiP7L5Bat60gpENVSuluMlKpyfoQyrshSxv3fvI qEKQ1XyvZ9JXUCdhWo9KRpIGaSkZ8VsqTc/Rf7tspUA== 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=NhbyjE /YeENTRU7FVDnqwB5Ojuzf1ddEnus1hH+s55g=; b=1O54cNfilFtfVXTTcGoXLI FT4kcFE1G5+7WP4PCPPiWOM8cvCMvdBTjKpOMGDpwVPHnkapjMH9lSwZEcQtTUPg JLkGCsoKUNEAFKzs0KkQ5CTQRWNT9FEVKzOAOViGHW0plnOShiNa97rMWKl8fGZp GLDfu/QvvCSbCk7/CUVH8/gLq1llAfPZSyzWGI7queZkpbrvpANVnMBpa1kRy+t3 4GfE7AQTg9yfZIo2CHPkyhO/6yMFoNXNtFQQ0T2VqIfYCAQAk45iXPxunglIQT3M j1BXfnNeN2/YUxbCl/7qVQFNngQPCMqKqz4aKKz0ktzCXzU1YfA2sCVzKpLvUIhw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddtledgfeekucetufdoteggodetrfdotf 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 A265410323; Mon, 20 May 2019 20:47:19 -0400 (EDT) Date: Mon, 20 May 2019 17:47:17 -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: <20190521004717.qsktdsugj3shagco@alap3.anarazel.de> References: <26460.1558366996@sss.pgh.pa.us> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21766.1558397960@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-05-20 20:19:20 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2019-05-20 14:09:40 -0400, Tom Lane wrote: > >> What I'd like, for both prove and pg_regress, is to print something > >> about failing tests and otherwise be quiet. Simple redirection won't > >> do that. Plus it'd be hard to fit that in with the case where you > >> don't want it to be quiet. > > > The most annoying noise imo is the pg_upgrade test. The set -x and the > > fact that it resets MAKEFLAGS makes that pretty annoying. > > Yeah. I just experimented with running "make -s check-world >/dev/null" > and found that *all* of the useless chatter on stderr is the pg_upgrade > test's fault. With the attached quick-hack patch, a successful run is > silent --- and if it fails, make tells you which directory it failed > in, which is enough to go find the problem. So that's already a huge > usability improvement over where we are. I think we really ought to apply something pretty much like that, at least in regards to the set -x. I'm mildly inclined to go for the others you have too. > > 2) We overwrite MAKELEVEL, MAKEFLAGS, breaking jobserver etc - that > > shouldn't be required anymore if test.sh were to be changed to behave > > like dcae5faccab64 > > Hmm. AFAICS, that commit removed that code without any explanation of > why it was safe to remove it, so I'm unclear on whether it would be > safe to do likewise in test.sh. I think the removal in dcae5faccab64 ought to be safe, as after dcae5faccab64 pg_regress doesn't invoke make anymore. I'm not 100% sure we actually don't need it in test.sh anymore, even if we don't perform the installation therein anymore. See next: > > 3) The fact that src/bin/pg_upgrade/Makefile invokes test.sh with > > MAKE=$(MAKE) triggers make, for reasons I do not yet understand, to > > *disable* output synchronization. Which annoys the heck out of me, > > because it makes parallel check output neigh unparsable. > > Probably the same thing as your 2)? It's not quite. I've not yet fully understood it yet. It's *not* tied to MAKEFLAGS. If I understand correctly, when make sees $(MAKE)/${MAKE} in a recipe, or the recipe starts with +, it assumes that the sub-command is *also* make. And the reason that output synchronization doesn't work is that make *intentionally* doesn't enable that for submakes - it only wants it for commands run by those submakes (otherwise it could not individually output individual targets processed in submakes). I think the right approach might be to just *never* invoke make inside test.sh: 1) We can fairly easily fix the make install to be unnecessary 2) I think the installcheck-parallel could be replaced by instead passing in the the necessary pg_regress command. That'd also have the benefit of not having another make invocation stat'ing a lot of files etc. I'll play with these. > 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. Greetings, Andres Freund