Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6jZ9-0005dM-FU for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Mar 2019 22:20:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h6jZ7-0004Wc-QM for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Mar 2019 22:20:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6jZ7-0004WV-Ic for pgsql-hackers@lists.postgresql.org; Wed, 20 Mar 2019 22:20:05 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h6jZ2-0003QC-D6 for pgsql-hackers@postgresql.org; Wed, 20 Mar 2019 22:20:04 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 0F19212B7C4DA for ; Wed, 20 Mar 2019 15:19:58 -0700 (MST) Date: Wed, 20 Mar 2019 15:19:58 -0700 (MST) From: legrand legrand To: pgsql-hackers@postgresql.org Message-ID: <1553120398016-0.post@n3.nabble.com> In-Reply-To: References: <1553029215728-0.post@n3.nabble.com> <0A3221C70F24FB45833433255569204D1FBE20A4@G01JPEXMBYT05> <1553110765067-0.post@n3.nabble.com> <1553116679891-0.post@n3.nabble.com> <1553117433667-0.post@n3.nabble.com> Subject: Re: [survey] New "Stable" QueryId based on normalized query text MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Julien Rouhaud wrote > On Wed, Mar 20, 2019 at 10:30 PM legrand legrand > < > legrand_legrand@ > > wrote: >> >> maybe this patch (with a GUC) >> https://www.postgresql.org/message-id/ > 55E51C48.1060102@ >> would be enough for thoses actually using a text normalization function. > > The rest of thread raise quite a lot of concerns about the semantics, > the cost and the correctness of this patch. After 5 minutes checking, > it wouldn't suits your need if you use custom functions, custom types, > custom operators (say using intarray extension) or if your tables > don't have columns in the same order in every environment. And there > are probably other caveats that I didn't see; Yes I know, It would have to be extended at less at functions, types, operators ... names and a guc pg_stat_statements.queryid_based= 'names' (default being 'oids') and with a second guc ('fullyqualifed' ?) sould include tables, functions, types, operators ... namespaces let "users" specify their needs, we will see ;o) -- Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html