mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
PG-210: Columns names should match upstream pg_stat_statements column names.
This commit is contained in:
23
Makefile
23
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user