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 1o67Gs-0008Ds-MS for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Jun 2022 09:12:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o67Gr-0003zU-6P for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Jun 2022 09:12:33 +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 1o67Gp-0003zK-Eo for pgsql-hackers@lists.postgresql.org; Tue, 28 Jun 2022 09:12:32 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o67Gl-0005j8-L3 for pgsql-hackers@lists.postgresql.org; Tue, 28 Jun 2022 09:12:31 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 703AB32008FA; Tue, 28 Jun 2022 05:12:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 28 Jun 2022 05:12:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1656407540; x= 1656493940; bh=tw9JysNsUx4Dx2XbiCSqOqKNweU25HhpT09O0ABkkL8=; b=Y u2ldCQ+zNz2gMncJBBSFZqMfHD6WAREfdcXM+1DORf1dCceWDCRfIo0vZfjRujdZ hsgcOlygRFrcT+syzMBlF5wjCbOjr/nZTVIK+Y55SiQ+cAf1za9Noh59dJOP4Y3J kyP7Du6AH7p5mPSZdEDPnxOnAlUTobUmAQ01Dtw/qYlNkK+f9K26dK7fi011X6zH fo9ucGfTy3mqYLItDI0K5+28j1LMgySE7d5jfjFT+4z4crKVcYtttrZ+6ZKUrjsN lXDvkeOtDQQmhUGifz6OyWKUH8/WgbFVuz8Y0GCgRrkZnctSjLPFL5xD1ssJXnH+ CHXRsuuXYoa//XLN2mu5A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1656407540; x= 1656493940; bh=tw9JysNsUx4Dx2XbiCSqOqKNweU25HhpT09O0ABkkL8=; b=g /BiK8Nfeucnv88kisbvg2CykA/ZQlwTZ0f5nXKfXyefKE4Xo2esRTk2cbPYUQ6ZY JMJin48Db4fUaSR7EaFyJFXTaNChQzQ3tHrAL41Z3C7bkL1yBZyIz31et8CtoAM6 RY+GHkCU0JgYYIis8WlrNQ3FIHuLgwBjR92bNMEpBogoSi1Lm9jmlGdRO/f1OWpA T5cIcEQz7o+yaSoJixgk3Y6YHcNIaZNJKPD41Qne/qWknJ5NFOSrc+EUnZ09XT4N nVVIqs0bq1GwpfsS2nq1r9cyKTydeinX4VYfOzNJFUp0HOf+gMbtWH5eUnCLGTIz MX8F6/qLOEkDJiez5/FHw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudegjedguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpefhvfevufhfffgjkfgfgggtgfesthekredt tderjeenucfhrhhomhepffgrghhfihhnnhgpkfhlmhgrrhhipgforghnnhhsnohkvghruc eoihhlmhgrrhhisehilhhmrghrihdrohhrgheqnecuggftrfgrthhtvghrnhepgeegkefg feehleekuefhveevkedttdeftdffueevueejfedtgedtteffgedthfelnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihhlmhgrrhhisehilhhm rghrihdrohhrgh X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Jun 2022 05:12:20 -0400 (EDT) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Michael Paquier Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Logging query parmeters in auto_explain References: <87ee09mohb.fsf@wibble.ilmari.org> <8735ggn2lf.fsf@wibble.ilmari.org> <87tu8tla5s.fsf@wibble.ilmari.org> <87iloml5a5.fsf@wibble.ilmari.org> <87fsjql51e.fsf@wibble.ilmari.org> Date: Tue, 28 Jun 2022 10:12:18 +0100 In-Reply-To: (Michael Paquier's message of "Tue, 28 Jun 2022 16:54:24 +0900") Message-ID: <87a69xkv7x.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; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > On Mon, Jun 27, 2022 at 12:27:57PM +0100, Dagfinn Ilmari Mannsåker wrote: >> I forgot to mention, I also changed the order of the query and >> parameters, so that they can more naturally be left out when no changes >> are needed. > > I can see that, and I have added $node as an extra parameter of the > routine. After putting my hands on that, it also felt a bit unnatural > to do the refactoring of the tests and the addition of the new GUC in > the same patch, so I have split things as the attached. The amount of > coverage is still the same but it makes the integration of the feature > easier to follow. That makes sense, but I still think the query_log() function definition should go at the end (after done_testing()), so the machinery doesn't distract from what's actually being tested. Also, the second paragraph of the second commit message now belongs in the first commit (without the word "Also"). Thanks, ilmari