RE: Planning counters in pg_stat_statements (using pgss_store) - Mailing list pgsql-hackers

From legrand legrand
Subject RE: Planning counters in pg_stat_statements (using pgss_store)
Date
Msg-id [email protected]
Whole thread Raw
In response to RE: Planning counters in pg_stat_statements (using pgss_store)  (legrand legrand <[email protected]>)
List 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



pgsql-hackers by date:

Previous
From: legrand legrand
Date:
Subject: RE: Planning counters in pg_stat_statements (using pgss_store)
Next
From: Tom Lane
Date:
Subject: Re: make check crashes on POWER8 machine