Thread: pgsql: pg_stat_statements: Add tests with extended query protocol

pgsql: pg_stat_statements: Add tests with extended query protocol

From
Michael Paquier
Date:
pg_stat_statements: Add tests with extended query protocol

There are currently no tests in the tree checking that queries using the
extended query protocol are able to map with their query ID.

This can be achieved for some paths of the extended query protocol with
the psql meta-commands \bind or \bind_named, so let's add some tests
based on both.

I have found that to be a useful addition while working on a different
issue.

Discussion: https://postgr.es/m/ZuEt6MOEBSlifBfn@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7b1ddbae361b0ed92d5696d666ae85a2cc4dd883

Modified Files
--------------
contrib/pg_stat_statements/Makefile              |  2 +-
contrib/pg_stat_statements/expected/extended.out | 62 ++++++++++++++++++++++++
contrib/pg_stat_statements/meson.build           |  1 +
contrib/pg_stat_statements/sql/extended.sql      | 17 +++++++
4 files changed, 81 insertions(+), 1 deletion(-)