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.92) (envelope-from ) id 1jD4CY-0000A9-KJ for pgsql-hackers@arkaria.postgresql.org; Sat, 14 Mar 2020 10:39:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jD4CW-000812-R0 for pgsql-hackers@arkaria.postgresql.org; Sat, 14 Mar 2020 10:39:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jD4CW-0007yB-EG for pgsql-hackers@lists.postgresql.org; Sat, 14 Mar 2020 10:39:28 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jD4CT-0002Kw-2C for pgsql-hackers@postgresql.org; Sat, 14 Mar 2020 10:39:26 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id A7A181BB2D9F2 for ; Sat, 14 Mar 2020 03:39:23 -0700 (MST) Date: Sat, 14 Mar 2020 03:39:23 -0700 (MST) From: legrand legrand To: pgsql-hackers@postgresql.org Message-ID: <1584182363683-0.post@n3.nabble.com> In-Reply-To: <1584180240397-0.post@n3.nabble.com> References: <1583439979339-0.post@n3.nabble.com> <20200309103142.GA45401@nol> <20200312063109.bzw4fbk64gpcbhhh@nol> <1584180240397-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 > I don't know it is useful but there are also codes that avoid an error when > sourceText is NULL. > executor_errposition(EState *estate, int location) > { > ... > /* Can't do anything if source text is not available */ > if (estate == NULL || estate->es_sourceText == NULL) > } or maybe would you prefer to replace the Non-Zero queryid test by Non-NULL sourcetext one ? -- Sent from: https://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html