Minimum postgres version supported fixed in META.json

This commit is contained in:
Daniele Varrazzo 2017-04-26 11:30:02 +01:00
parent 5b1001d620
commit cbb3b7f916
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@
"prereqs": {
"runtime": {
"requires": {
"PostgreSQL": "8.3.0"
"PostgreSQL": "9.1.0"
}
}
},

View File

@ -24,6 +24,7 @@ INTVERSION := $(shell echo $$(($$(echo $(VERSION) | sed 's/\([[:digit:]]\{1,\}\)
EXTVERSION = $(shell grep '"version":' META.json | head -1 \
| sed -e 's/[ ]*"version":[ ]*"\(.*\)",/\1/')
# NOTE: keep consistent with META.json
ifeq ($(shell echo $$(($(INTVERSION) < 901))),1)
$(error $(EXTENSION) requires PostgreSQL 9.1 or later. This is $(VERSION))
endif