Skip to content

Commit 0cb40b6

Browse files
committed
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.
1 parent 080ebd3 commit 0cb40b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ INTVERSION := $(shell echo $$(($$(echo $(VERSION) | sed 's/\([[:digit:]]\{1,\}\)
2424
EXTVERSION = $(shell grep '"version":' META.json | head -1 \
2525
| sed -e 's/[ ]*"version":[ ]*"\(.*\)",/\1/')
2626

27-
# We support PostgreSQL 8.3 and later.
27+
# We support PostgreSQL 8.3 through 9.3. We DO NOT yet support 9.4+.
2828
ifeq ($(shell echo $$(($(INTVERSION) < 803))),1)
2929
$(error $(EXTENSION) requires PostgreSQL 8.3 or later. This is $(VERSION))
3030
endif
3131

32+
ifeq ($(shell echo $$(($(INTVERSION) >= 904))),1)
33+
$(error $(EXTENSION) does not yet support PostgreSQL 9.4 or later. This is $(VERSION))
34+
endif
3235

3336
SUBDIRS = bin lib regress
3437

0 commit comments

Comments
 (0)