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 1lhFJR-0006Rd-LR for pgsql-hackers@arkaria.postgresql.org; Thu, 13 May 2021 17:39:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lhFJQ-0007ZP-08 for pgsql-hackers@arkaria.postgresql.org; Thu, 13 May 2021 17:39:52 +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 1lhFJP-0007ZG-OM for pgsql-hackers@lists.postgresql.org; Thu, 13 May 2021 17:39:51 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lhFJN-0006sk-8O for pgsql-hackers@lists.postgresql.org; Thu, 13 May 2021 17:39:50 +0000 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:1478:7c00:5b56:57a1:1259:a97f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 4FgzSL2zd6z3F3W; Thu, 13 May 2021 19:39:46 +0200 (CEST) Date: Thu, 13 May 2021 19:39:45 +0200 From: Christoph Berg To: Bruce Momjian Cc: Julien Rouhaud , Pavel Stehule , Kyotaro Horiguchi , Magnus Hagander , Fujii Masao , Michael Paquier , Andres Freund , Tom Lane , Alvaro Herrera , Stephen Frost , Peter Eisentraut , PostgreSQL Hackers Subject: Re: compute_query_id and pg_stat_statements Message-ID: References: <20210512095149.kqbnhe72uijfwi2r@nol> <20210513003618.GA26043@momjian.us> <20210513005236.aj7n6b76yjsxythc@nol> <20210513011325.GA11075@momjian.us> <20210513015700.fp33q5rfvwl2ahfx@nol> <20210513030652.GB11075@momjian.us> <20210513031613.j47baglf6xl3mgbs@nol> <20210513033332.GF11075@momjian.us> <20210513040342.fouh7ryglrfgxglu@nol> <20210513144143.GG11075@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210513144143.GG11075@momjian.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Re: Bruce Momjian > Well, now that we have clear warnings when it is misconfigured, > especially when querying the pg_stat_statements view, are these > complaints still valid? Also, how is modifying > shared_preload_libraries zero-config, but modifying > shared_preload_libraries and compute_query_id a huge burden? It's zero-config in the sense that if you want to have pg_stat_statements, loading that module via shared_preload_libraries is just natural. Having to set compute_query_id isn't natural. It's a setting with a completely different name, and the connection of pg_stat_statements to compute_query_id isn't obvious. The reasoning with "we have warnings and stuff" might be ok if pg_stat_statements were a new thing, but it has worked via shared_preload_libraries only for the last decade, and requiring something extra will confuse probably every single user of pg_stat_statements out there. Perhaps worse, note that these warnings will likely first be seen by the end users of databases, not by the admin performing the initial setup or upgrade, who will not be able to fix the problem themselves. Christoph