Skip to content

Commit

Permalink
Merge pull request #18 from citusdata/develop
Browse files Browse the repository at this point in the history
Make PostgreSQL version requirement explicit in Makefile and README
  • Loading branch information
pykello committed Apr 16, 2014
2 parents bd4b295 + 4d92fb7 commit 702ecb9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Expand Up @@ -34,6 +34,14 @@ PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)

ifndef MAJORVERSION
MAJORVERSION := $(basename $(VERSION))
endif

ifeq (,$(findstring $(MAJORVERSION), 9.3 9.4))
$(error PostgreSQL 9.3 or 9.4 is required to compile this extension)
endif

cstore.pb-c.c: cstore.proto
protoc-c --c_out=. cstore.proto

Expand Down
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -61,6 +61,9 @@ installation's bin/ directory path. For example:
PATH=/usr/local/pgsql/bin/:$PATH make
sudo PATH=/usr/local/pgsql/bin/:$PATH make install

**Note.** cstore_fdw requires PostgreSQL 9.3 or 9.4. It doesn't support earlier
versions of PostgreSQL.


Usage
-----
Expand Down

0 comments on commit 702ecb9

Please sign in to comment.