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 1lb4xk-0001Pf-Ce for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Apr 2021 17:24:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lb4xj-0003VA-BI for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Apr 2021 17:23:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lb4xj-0003V3-4B for pgsql-hackers@lists.postgresql.org; Mon, 26 Apr 2021 17:23:59 +0000 Received: from tamriel.snowman.net ([70.109.60.50]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lb4xg-0002mf-EC for pgsql-hackers@lists.postgresql.org; Mon, 26 Apr 2021 17:23:57 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id A12035F799; Mon, 26 Apr 2021 13:23:54 -0400 (EDT) Date: Mon, 26 Apr 2021 13:23:54 -0400 From: Stephen Frost To: Magnus Hagander Cc: Tom Lane , Bruce Momjian , Christoph Berg , Peter Eisentraut , Fujii Masao , PostgreSQL Developers Subject: Re: compute_query_id and pg_stat_statements Message-ID: <20210426172354.GV20766@tamriel.snowman.net> References: <20210424152220.GL7629@momjian.us> <20210424170908.GM7629@momjian.us> <1709439.1619286231@sss.pgh.pa.us> <20210426162104.GQ7629@momjian.us> <20210426163135.GU20766@tamriel.snowman.net> <2267128.1619456173@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ZSdOEmCSGNxD94B2" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --ZSdOEmCSGNxD94B2 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Magnus Hagander (magnus@hagander.net) wrote: > On Mon, Apr 26, 2021 at 6:56 PM Tom Lane wrote: > > Stephen Frost writes: > > > * Bruce Momjian (bruce@momjian.us) wrote: > > >> Techically, pg_stat_statements can turn on compute_query_id when it = is > > >> loaded, even if it is 'off' in postgresql.conf, right? And > > >> pg_stat_statements would know if an alternate hash method is being u= sed, > > >> right? > > > > > +1 on this approach. > > > > That'd make it impossible to turn off or adjust afterwards, wouldn't it? > > I'm afraid the confusion stemming from that would outweigh any simplici= ty. I don't know that it actually would, but ... > That=E4s why I suggested the three value one. Default to a mode where > it's automatic, which is what the majority is going to want, but have > a way to explicitly turn it on. This is certainly fine with me too, though it seems a bit surprising to me that we couldn't just figure out what the user actually wants based on what's installed/running for any given combination. > > In the end, it's not like this is the first time we've ever made an > > incompatible change in configuration needs; and it won't be the last > > either. I don't buy the argument that pg_stat_statements users can't > > cope with adding the additional setting. (Of course, we should be > > careful to call it out as an incompatible change in the release notes.) >=20 > The fact that we've made changes before that complicated our users > experience isn't in itself an argument for doing it again though... I'm generally a proponent of sensible changes across major versions even if it means that the user has to adjust things, but this seems like a case where we're punting on something that we really should just be able to figure out the right answer to and that seems like a step backwards. Thanks, Stephen --ZSdOEmCSGNxD94B2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJghvcqAAoJEO1sijiDR2RVmXQQAKCn6vXcichuli7gnxZsb0Zc uynKg0KqV1hn9BkkIBSjzaB8pozZ6+9P5dP/pcGQnJDOm39raKTQLtffNhwCK+VP 8TKgsaoQ+8aiQMwP8HsFBhOsbbOcRleRj9QV7SZu7fnFWUkZbeZ6zSx99ZZeg+g/ 8ia4nReIabHq6Xt23SLnyDwxZEHp6iT9Nhd2U9RLrT6XtHaglpifubUr6cwFs6+F QSu0AnbbFIvHASdWoOVirv+9R7JOPy7DQT6DTjqMkOIW8NaHvhkVFbfm5QoDPYfS MmSmeqPj3jE/vPb5S3iGpd0ijDWvXeLhgl8pz9gIuG+uUhzzCO4HeIKEN+SYPD7E Ce0TYx7qeVT0F7i4bZUat/UAV+fCaXuo73yPSiWd5w9lj4VplwdxsRp6u9/pwc2V 5Vz5E7dA8yb0Ubj9Pbnd7LiPp0ogIf4zy5dad0qBGP6NZ/bXVB8RXbrk0i/eAuhq 9oIdRbnXn/b5IdhxL+ordhQfCbDxyapS4Hj++Upa4+dOIM/IQnoT8D6e+Uc2xzGu HsnZn5ec8WGDXVO9d3TxysvP5K4AU9TnpM/zliG/nbGtSUrLWd/F9wkC8YkGewnJ uZWwqvv53j3dBYltqljPEqNn5GnxyuGwSK4x80q31sp0uxmL/LiwctDa1ItqtC1v SVMyhUkLd7FB5VwwVdhg =9CiI -----END PGP SIGNATURE----- --ZSdOEmCSGNxD94B2--