]> granicus.if.org Git - postgresql/commit
pg_stat_statements: add missing check for pgss_enabled().
authorJeff Davis <jdavis@postgresql.org>
Fri, 19 Jul 2019 20:24:33 +0000 (13:24 -0700)
committerJeff Davis <jdavis@postgresql.org>
Fri, 19 Jul 2019 20:38:55 +0000 (13:38 -0700)
commit6f40ee4f837ec1ac59c8ddc73b67a04978a184d5
tree92f9e21840fbff113295dda431b388a699d56c0e
parent421466863548de58199c7c6ececaae6b5f621b2f
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
contrib/pg_stat_statements/pg_stat_statements.c