PG-210: Columns names should match upstream pg_stat_statements column names.

This commit is contained in:
Ibrar Ahmed
2021-11-10 18:33:02 +00:00
parent 51a6d38c45
commit 20f3d8c047
3 changed files with 285 additions and 0 deletions

View File

@@ -17,8 +17,31 @@ REGRESS = basic version guc counters relations database top_query application_na
# which typical installcheck users do not have (e.g. buildfarm clients).
# NO_INSTALLCHECK = 1
ifdef USE_PGXS
PG_CONFIG = pg_config
PG_VERSION := $(shell pg_config --version)
MAJOR := $(shell echo $(PG_VERSION) | sed -e 's/\.[^./]*$$//')
all:
echo $(MAJOR)
ifneq (,$(findstring PostgreSQL 14,$(MAJOR)))
CP := $(shell cp pg_stat_monitor--1.0.13.dat pg_stat_monitor--1.0.sql)
endif
ifneq (,$(findstring PostgreSQL 13,$(MAJOR)))
CP := $(shell cp pg_stat_monitor--1.0.13.dat pg_stat_monitor--1.0.sql)
endif
ifneq (,$(findstring PostgreSQL 12,$(MAJOR)))
CP := $(shell cp pg_stat_monitor--1.0.dat pg_stat_monitor--1.0.sql)
endif
ifneq (,$(findstring PostgreSQL 11,$(MAJOR)))
CP := $(shell cp pg_stat_monitor--1.0.dat pg_stat_monitor--1.0.sql)
endif
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else