RE: Planning counters in pg_stat_statements (using pgss_store)

From: legrand legrand <legrand_legrand(at)hotmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: RE: Planning counters in pg_stat_statements (using pgss_store)
Date: 2020-03-14 10:39:23
Message-ID: 1584182363683-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2020-03-14 13:19:41 Re: make check crashes on POWER8 machine
Previous Message legrand legrand 2020-03-14 10:04:00 RE: Planning counters in pg_stat_statements (using pgss_store)