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 1ioAE6-0005dd-5e for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Jan 2020 18:02:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ioAE4-00011F-Pf for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Jan 2020 18:02:08 +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 1ioAE4-000118-Gq for pgsql-hackers@lists.postgresql.org; Sun, 05 Jan 2020 18:02:08 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ioADx-0002Nt-LY for pgsql-hackers@postgresql.org; Sun, 05 Jan 2020 18:02:07 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 373ED19F2AFF8 for ; Sun, 5 Jan 2020 11:01:59 -0700 (MST) Date: Sun, 5 Jan 2020 11:01:59 -0700 (MST) From: legrand legrand To: pgsql-hackers@postgresql.org Message-ID: <1578247319224-0.post@n3.nabble.com> In-Reply-To: References: <1578237055901-0.post@n3.nabble.com> Subject: Re: Planning counters in pg_stat_statements (using pgss_store) 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 Sun, Jan 5, 2020 at 4:11 PM legrand legrand > < > legrand_legrand@ > > wrote: >> >> Hi Julien, >> >> I would like to create a link with >> https://www.postgresql.org/message-id/ > 1577490124579-0.post@.nabble >> >> where we met an ASSET FAILURE because query text was not initialized ... >> >> The question raised is: >> >> - should query text be always provided >> or >> - if not how to deal that case (in pgss). > > I'd think that since the query text was until now always provided, > there's no reason why this patch should change that. That being said, > there has been other concerns raised wrt. temporary tables in the IVM > patchset, so ISTM that there might be important architectural changes > upcoming, so having to deal with this case in pgss is not rushed > (especially since handling that in pgss would be trivial), and can > help to catch issue with the query text pasing. IVM revealed that ASSERT, but IVM works fine with pg_stat_statements.track_planning = off. There may be others parts of postgresql that would have workede fine as well. This means 2 things: - there is a (litle) risk to meet other assert failures when using planning counters in pgss, - we have an easy workarround to fix it (disabling track_planning). But I would have prefered this new feature to work the same way with or without track_planning activated ;o( -- Sent from: https://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html