Add generic_plans and custom_plans fields into pg_prepared_statements.
authorFujii Masao <fujii@postgresql.org>
Mon, 20 Jul 2020 02:55:50 +0000 (11:55 +0900)
committerFujii Masao <fujii@postgresql.org>
Mon, 20 Jul 2020 02:55:50 +0000 (11:55 +0900)
commitd05b172a760e0ccb3008a2144f96053720000b12
tree8acef7bc05b6485a04613c58ae2c3dce50c6701e
parent044dc7b964147ec6303d59320fb743693b22af30
Add generic_plans and custom_plans fields into pg_prepared_statements.

There was no easy way to find how many times generic and custom plans
have been executed for a prepared statement. This commit exposes those
numbers of times in pg_prepared_statements view.

Author: Atsushi Torikoshi, Kyotaro Horiguchi
Reviewed-by: Tatsuro Yamada, Masahiro Ikeda, Fujii Masao
Discussion: https://postgr.es/m/CACZ0uYHZ4M=NZpofH6JuPHeX=__5xcDELF8hT8_2T+R55w4RQw@mail.gmail.com
doc/src/sgml/catalogs.sgml
src/backend/commands/prepare.c
src/backend/utils/cache/plancache.c
src/include/catalog/pg_proc.dat
src/include/utils/plancache.h
src/test/regress/expected/plancache.out
src/test/regress/expected/rules.out
src/test/regress/sql/plancache.sql