hypopg/Makefile
nutvii 351f14a79d Add support for hypothetically hide existing index on explain.
Add new list hideIndexes and develop new function by hypo_get_relation_info_hook.
User can hide or unhide existing index and hypothetical indexes.
When user set hide existing index and execute EXPLAIN, it will scan the same oid in hideIndexes and remove it to make query-plan can't use it.
Add regression tests for hiding existing indexes.
Update to version hypopg--1.4.0.
Provide simple examples of using the hide series functions in README.md.
Update doc about hypothetically hide existing indexes.
2023-03-23 09:49:53 +01:00

62 lines
1.7 KiB
Makefile

EXTENSION = hypopg
EXTVERSION = $(shell grep default_version $(EXTENSION).control | sed -e "s/default_version[[:space:]]*=[[:space:]]*'\([^']*\)'/\1/")
TESTS = $(wildcard test/sql/*.sql)
# More test can be added later, after including pgxs
REGRESS = hypopg
REGRESS_OPTS = --inputdir=test
PG_CONFIG ?= pg_config
MODULE_big = hypopg
OBJS = hypopg.o \
hypopg_index.o \
import/hypopg_import.o \
import/hypopg_import_index.o
all:
release-zip: all
git archive --format zip --prefix=hypopg-${EXTVERSION}/ --output ./hypopg-${EXTVERSION}.zip HEAD
unzip ./hypopg-$(EXTVERSION).zip
rm ./hypopg-$(EXTVERSION).zip
rm ./hypopg-$(EXTVERSION)/.gitignore
rm ./hypopg-$(EXTVERSION)/docs/ -rf
rm ./hypopg-$(EXTVERSION)/typedefs.list
rm ./hypopg-$(EXTVERSION)/TODO.md
sed -i -e "s/__VERSION__/$(EXTVERSION)/g" ./hypopg-$(EXTVERSION)/META.json
zip -r ./hypopg-$(EXTVERSION).zip ./hypopg-$(EXTVERSION)/
rm ./hypopg-$(EXTVERSION) -rf
DATA = $(wildcard *--*.sql)
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
ifneq ($(MAJORVERSION),$(filter $(MAJORVERSION), 9.2 9.3 9.4))
REGRESS += hypo_brin
endif
ifeq ($(MAJORVERSION),10)
REGRESS += hypo_index_part_10
endif
ifneq ($(MAJORVERSION),$(filter $(MAJORVERSION), 9.2 9.3 9.4 9.5 9.6 10))
REGRESS += hypo_index_part hypo_include
endif
ifneq ($(MAJORVERSION),$(filter $(MAJORVERSION), 9.2 9.3 9.4 9.5 9.6))
REGRESS += hypo_hash
endif
REGRESS += hypo_hide_index
DEBUILD_ROOT = /tmp/$(EXTENSION)
deb: release-zip
mkdir -p $(DEBUILD_ROOT) && rm -rf $(DEBUILD_ROOT)/*
unzip ./${EXTENSION}-$(EXTVERSION).zip -d $(DEBUILD_ROOT)
cd $(DEBUILD_ROOT)/${EXTENSION}-$(EXTVERSION) && make -f debian/rules orig
cd $(DEBUILD_ROOT)/${EXTENSION}-$(EXTVERSION) && debuild -us -uc -sa