Merge pull request #76 from mu-samoylov/PG-184

PG-184: New test case to test the version.
pull/77/head
Ibrar Ahmed 2021-02-24 15:19:01 +05:00 committed by GitHub
commit 1c1ace02a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;