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 1nMKXZ-00051q-P1 for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Feb 2022 02:04:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nMKXW-0003dQ-NC for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Feb 2022 02:04:30 +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 1nMKXV-0003dG-Fb for pgsql-hackers@lists.postgresql.org; Tue, 22 Feb 2022 02:04:30 +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 1nMKXT-0005Ig-3F for pgsql-hackers@lists.postgresql.org; Tue, 22 Feb 2022 02:04:29 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 9C0983202092; Mon, 21 Feb 2022 21:04:21 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 21 Feb 2022 21:04:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc: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=fm1; bh=CUN5zFgRimS8PXMTt7nyyoo2s3LYR8/0FaRiXy G+FiU=; b=Yxz0xh5EY43Qpg2fVnxYYCZ3wDVgznGAMJDMVnQrnbOALg2yDdDIEd j81vHsouqhZGduK7i9glGGDlgnMWg8vB1lwqwLLfcpUzwPCkckfV7kphNh7Pbhns A7CdXdTIW4lgtxxUpNIGjIDA1GOPtX9NXA//BFoLS/7yRS9r6xzh0seZNCd9nk/e Pl2TznPbP0u6jGOLIFiW5idNMQ9JK1qbYW3+mD97t0jE6gMA3MMTb74uJaWnzNw2 ClWjqFvIqjU3PdoqSsWsZwMM9dbOSanQYrnejVz3rIj9rdcflGL43nEH6UX0CdX4 0rnF0YNpaCjV8lB77Eul0iMYhZ4yrviQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date: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; bh=CUN5zFgRimS8PXMTt 7nyyoo2s3LYR8/0FaRiXyG+FiU=; b=h0Ij+UU4eqhTC5Om9jyJwJUPR3VPAIsOr 0CT0lGauCmxfW1Admbg3vY/XuWnK60BeLudWirp6IEgkdjiC52rTmqbzV1Hns/M5 1Mu772twO5cfmVe2+Fd0p542tt9z+Hv9Yc2/9rPV8SymaRFDmCM2bBEJsKzAdQ2l GGDU3W7Qx8/+7bNuyfLyDuS/u91RRHjbn0uHO4PIdZSjrx/edihDKnPiMKx6Duty KSjfJQSk7rhe6aSX66odBzMp+eG94qI/joyrE/TA0PUHswdrVtr+EOjA7boFJAWl A3OTReVKr5vekeu4Sd/VIjLbIgKj2udha4guPj3XI97dVgBAf0gEA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrkeejgdegudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveejheeh ieevueeigeelteegleejleeiueeiheegvefhnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 21 Feb 2022 21:04:19 -0500 (EST) Date: Tue, 22 Feb 2022 11:04:16 +0900 From: Michael Paquier To: Julien Rouhaud Cc: Postgres hackers , Bruce Momjian Subject: Re: shared_preload_libraries = 'pg_stat_statements' failing with installcheck (compute_query_id = auto) Message-ID: References: <20220208034815.m4cwlyimmfjtgvoq@jrouhaud> <20220218093856.zenl2axicm5mmdc5@jrouhaud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="x6K+qDtD/n5d7y0L" Content-Disposition: inline In-Reply-To: <20220218093856.zenl2axicm5mmdc5@jrouhaud> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --x6K+qDtD/n5d7y0L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 18, 2022 at 05:38:56PM +0800, Julien Rouhaud wrote: > On Fri, Feb 18, 2022 at 05:22:36PM +0900, Michael Paquier wrote: >> So, I have been looking at this problem, and I don't see a problem in >> doing something like the attached, where we add a "regress" mode to >> compute_query_id that is a synonym of "auto". Or, in short, we have >> the default of letting a module decide if a query ID can be computed >> or not, at the exception that we hide its result in EXPLAIN outputs. >> >> Julien, what do you think? >=20 > I don't see any problem with that patch. Okay, thanks. I have worked on that today and applied the patch down to 14, but without the change to enforce the parameter in the databases created by pg_regress. Perhaps we should do that in the long-term, but it is also possible to pass down the option to PGOPTIONS via command line as compute_query_id is a SUSET or just set it in postgresql.conf, and being able to do so is enough to address all the cases I have seen and/or could think about. -- Michael --x6K+qDtD/n5d7y0L Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmIURKAACgkQnvQgOdby QH2c7A/+MUsKr2lRzgeIlZWrctPjaxqTfbIh8gDO6oIq7mcj2x1YBLfpsR0HWWH2 hhD7yboqXmoP7X0Tq7yAyhaYhiY7QqWdqas+2pytPoFZEeZemFpSWDQjyIU4oZ11 Fo6XY3rsq77+RRmMp0sLqYTdCJE107y9WfZUnTputGtQ+fhn7rurpyYQdah+8FqV Xyvm5cuXNp3WkWkUG60LUspGhrhjdONLAlspy3arlHv5+0HkyrUUaqH/c85x68B0 tr4XzOSqOWVY8Z5fCTJ3RRFeVIv+Bg0u0qNp5zkWIvimeYf9DwVRgMjw7F8lf0kG rC46pvbaqDT8Tgd57VV0GsnxgGRx809pOTd2mVwcvwljVlYcsSHfu/JsBDtMDXbG XK9Xm0REOBqrYiiZstlRLnh8HheppWap/Bc44nuFmX6gLPhABvfM+qZzsI/aEGCd wTGENxudkf5wvZkdfie/Ah3w9xaw2Odoode7o6fRdCLnFVIjWl+uWV+A+LsyPlPq ZT6uzUuTmBV9UVcOpBHfi40kbYUP/EKou55mz3VS/7qJ87W2u8+H/LoMKIeIylei 3fyfGljHAOQ4C9L/O9pqgQhJruWYAGrpnri+wrVFGFy/Mk8VKxQ8+ElU4dt5v8Tc L001q13TlGjZhPkq3VQ1oZnrpOiyTVSANo7J6a4IGbfIOQOriDc= =9XyA -----END PGP SIGNATURE----- --x6K+qDtD/n5d7y0L--