pg_repack.git / summary / log / commit / refs
commit 0cb40b620403dfacfce4e0b369f4c2a64578c25a
Author: Josh Kupershmidt <schmiddy@gmail.com>
Date: Mon Jan 12 00:06:20 2015 +0000
Add a Makefile check to avoid building against PostgreSQL 9.4+
Better to error out early during make, rather than failing with an
obscure error during CREATE EXTENSION.
Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 2295ffb..696a8ab 100644
--- a/Makefile
+++ b/Makefile
@@ -24,11 +24,14 @@ INTVERSION := $(shell echo $$(($$(echo $(VERSION) | sed 's/\([[:digit:]]\{1,\}\)
EXTVERSION = $(shell grep '"version":' META.json | head -1 \
| sed -e 's/[ ]*"version":[ ]*"\(.*\)",/\1/')
-# We support PostgreSQL 8.3 and later.
+# We support PostgreSQL 8.3 through 9.3. We DO NOT yet support 9.4+.
ifeq ($(shell echo $$(($(INTVERSION) < 803))),1)
$(error $(EXTENSION) requires PostgreSQL 8.3 or later. This is $(VERSION))
endif
+ifeq ($(shell echo $$(($(INTVERSION) >= 904))),1)
+$(error $(EXTENSION) does not yet support PostgreSQL 9.4 or later. This is $(VERSION))
+endif
SUBDIRS = bin lib regress
[parent: 080ebd3ed697]