PG-184: Test version.

pull/76/head
Mikhail Samoylov 2021-02-23 20:43:22 +03:00
parent 5b45951441
commit 15a62d9ad3
3 changed files with 12 additions and 1 deletions

View File

@ -11,7 +11,7 @@ PGFILEDESC = "pg_stat_monitor - execution statistics of SQL statements"
LDFLAGS_SL += $(filter -lm, $(LIBS))
REGRESS_OPTS = --temp-config $(top_srcdir)/contrib/pg_stat_monitor/pg_stat_monitor.conf --inputdir=regression
REGRESS = guc relations basic pg_stat_monitor
REGRESS = guc relations basic pg_stat_monitor test_version
# Disabled because these tests require "shared_preload_libraries=pg_stat_statements",
# which typical installcheck users do not have (e.g. buildfarm clients).

View File

@ -0,0 +1,8 @@
CREATE EXTENSION pg_stat_monitor;
SELECT pg_stat_monitor_version();
pg_stat_monitor_version
-------------------------
0.7.0
(1 row)
DROP EXTENSION pg_stat_monitor;

View File

@ -0,0 +1,3 @@
CREATE EXTENSION pg_stat_monitor;
SELECT pg_stat_monitor_version();
DROP EXTENSION pg_stat_monitor;