pgsql: pg_stat_statements: add missing check for pgss_enabled().

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_stat_statements: add missing check for pgss_enabled().
Date: 2019-07-19 20:47:19
Message-ID: E1hoZmh-0002Tw-FZ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_stat_statements: add missing check for pgss_enabled().

Make pgss_post_parse_analyze() more consistent with the other hooks,
and avoid unnecessary overhead when pg_stat_statements.track=none.

Author: Raymond Martin
Reviewed-by: Fabien COELHO
Discussion: https://postgr.es/m/BN8PR21MB1217B003C4F79DE230AA36B9B1580%40BN8PR21MB1217.namprd21.prod.outlook.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6f40ee4f837ec1ac59c8ddc73b67a04978a184d5

Modified Files
--------------
contrib/pg_stat_statements/pg_stat_statements.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2019-07-20 09:17:33 Re: pgsql: Sync our copy of the timezone library with IANA release tzcode20
Previous Message Tom Lane 2019-07-19 18:56:34 Re: pgsql: Sync our copy of the timezone library with IANA release tzcode20