Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zj7tr-0008BQ-6K for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Oct 2015 15:42:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zj7tq-0002Ja-Np for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Oct 2015 15:42:02 +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_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zj7sX-0008Gg-Jn for pgsql-hackers@postgresql.org; Mon, 05 Oct 2015 15:40:41 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Zj7sT-0004MW-3x for pgsql-hackers@postgresql.org; Mon, 05 Oct 2015 15:40:40 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [200.104.52.149]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 5D975400F9D; Mon, 5 Oct 2015 08:40:34 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 85500857; Mon, 5 Oct 2015 12:40:32 -0300 (CLT) Date: Mon, 5 Oct 2015 12:40:32 -0300 From: Alvaro Herrera To: Andrew Dunstan Cc: Tom Lane , Peter Geoghegan , Jim Nasby , Pg Hackers Subject: Re: Less than ideal error reporting in pg_stat_statements Message-ID: <20151005154032.GF8531@alvherre.pgsql> References: <5601D354.5000703@BlueTreble.com> <15898.1442965225@sss.pgh.pa.us> <56030E72.9070104@BlueTreble.com> <30112.1444058156@sss.pgh.pa.us> <561296EC.805@dunslane.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <561296EC.805@dunslane.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andrew Dunstan wrote: > > On 10/05/2015 11:15 AM, Tom Lane wrote: > >Peter Geoghegan writes: > >>I'm annoyed and disappointed that the patch committed does not even > >>begin to address the underlying problem -- it just adds an escape > >>hatch, and fixes another theoretical issue that no one was affected > >>by. Honestly, next time I won't bother. > >The problem as I see it is that what you submitted is a kluge that will > >have weird and unpredictable side effects. Moreover, it seems to be > >targeting an extremely narrow problem case, ie large numbers of queries > >that (a) have long query texts and (b) are distinct to the fingerprinting > >code and (c) fail. It seems to me that you could get into equal trouble > >with situations where (c) is not satisfied, and what then? > FWIW, (a) and (b) but not (c) is probably the right description for my > client who has been seeing problems here. I think the fact that long IN lists are fingerprinted differently according to the number of elements in the list makes the scenario rather very likely -- not particularly narrow. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers