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 1lb52t-0001XV-S7 for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Apr 2021 17:29:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lb52r-0006Ua-6H for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Apr 2021 17:29:17 +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 1lb52q-0006UT-Vn for pgsql-hackers@lists.postgresql.org; Mon, 26 Apr 2021 17:29:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lb52k-00089Y-NA for pgsql-hackers@lists.postgresql.org; Mon, 26 Apr 2021 17:29:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 13QHT0C02268612; Mon, 26 Apr 2021 13:29:00 -0400 From: Tom Lane To: Stephen Frost cc: Magnus Hagander , Bruce Momjian , Christoph Berg , Peter Eisentraut , Fujii Masao , PostgreSQL Developers Subject: Re: compute_query_id and pg_stat_statements In-reply-to: <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> <20210426172354.GV20766@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Mon, 26 Apr 2021 13:23:54 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2268610.1619458140.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 26 Apr 2021 13:29:00 -0400 Message-ID: <2268611.1619458140@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Stephen Frost writes: > * Magnus Hagander (magnus@hagander.net) wrote: >> Thatäs 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. I'd be on board with having pg_stat_statement's pg_init function do something to adjust the setting, if we can figure out how to do that in a way that's not confusing in itself. I'm not sure though that the GUC engine offers a good way. regards, tom lane