Comments (7)
Same result with Ubuntu 12.04 and Postgres 9.2 distribution from PGDG (http://wiki.postgresql.org/wiki/Apt).
$ PATH="/usr/lib/postgresql/9.2/bin:$PATH" make
protoc-c --c_out=. cstore.proto
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -pie -I/usr/include/mit-krb5 -DLINUX_OOM_ADJ=0 -fno-omit-frame-pointer -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic --std=c99 -I. -I./ -I/usr/include/postgresql/9.2/server -I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.5 -c -o cstore.pb-c.o cstore.pb-c.c
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -pie -I/usr/include/mit-krb5 -DLINUX_OOM_ADJ=0 -fno-omit-frame-pointer -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic --std=c99 -I. -I./ -I/usr/include/postgresql/9.2/server -I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.5 -c -o cstore_fdw.o cstore_fdw.c
cstore_fdw.c:23:33: fatal error: access/htup_details.h: No such file or directory
compilation terminated.
make: *** [cstore_fdw.o] Error 1
from cstore_fdw.
Thanks for reporting this. I'll look into see if we can check this in Makefile. I'll make a note of this in the README file.
from cstore_fdw.
The MAJORVERSION
and VERSION
variables are set in the PGXS Makefile so they can be used to do this kind of checking. plv8js
uses them to define targets differently based on the PostgreSQL version (they even populate MAJORVERSION
if it's absent because older PostgreSQL versions lack it).
That said I can't figure out how to fail fast using them. Ideally we'd use findstring
to detect if the current PostgreSQL version is unsupported and then error
immediately.
from cstore_fdw.
Thanks Jason.
I was thinking we have two options:
- Check for 9.3 or later,
- Check for 9.3 or 9.4.
I thought we shouldn't exclude 9.4 from supported version because the extension compiles with PostgreSQL 9.4dev, and people have tried using it with 9.4dev.
Inspired by the link Jason gave, for the first option, we can do:
ifndef MAJORVERSION
MAJORVERSION := $(basename $(VERSION))
endif
PG93_OR_LATER := $(shell expr $(value MAJORVERSION) \>= 9.3)
ifeq ($(PG93_OR_LATER), 0)
$(error PostgreSQL 9.3 or later is required to compile this extension)
endif
For the 2nd option, we can do:
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
Because we don't know if this will compile with later versions of PostgreSQL, so I prefer the 2nd option. Any thoughts?
from cstore_fdw.
@pykello — I tried something similar to the second quite a few times. Maybe I'm doing something wrong, but I couldn't get that conditional to trigger unless it was part of a target. The only target that made sense to me was to add it as a prereq of all
but that just made it run at the end of the all
target (i.e. after all compilation). Tell me if you hit the same issue (my Make-fu isn't very strong).
from cstore_fdw.
@jasonmp85 this worked for me in Fedora 16's GNU Make 3.82 and OS X's GNU Make 3.81. I am also not strong at Make, what I did was try adding those lines to right after include $(PGXS)
in the Makefile.
Can you try it to see if it works in your setup?
from cstore_fdw.
The "ifeq (...) $(error ...) endif" works in GNU Make 3.78+. Although, PostgreSQL 9.1+ require GNU Make 3.80+. GNU Make 3.78 was released in 1999 and 3.80 was released in 2002.
Also added a note to the README file which mentions that cstore_fdw supports only PostgreSQL 9.3 and 9.4.
Tested this with different GNU Make versions and PostgreSQL 8.4+.
Pushed the changes.
from cstore_fdw.
Related Issues (20)
- select count(1) from table where datecolum = '2020-02-01' slow HOT 4
- Missing dependencies in makefile targets
- Cant ./configure in CentOS 07
- How to make use of parallelization with cstore_fdw? HOT 2
- Tests not running on Travis, and missing CircleCI configs
- Support for Heroku Postgres / Citus Data addon? HOT 1
- Is cstore_fdw still supported by developers? HOT 3
- segfault during copy into foreign table HOT 2
- hll build error against v13 HOT 5
- Does cstore_fdw Support Parallel COPY into the Same Table?
- Integer overflow in cstore_clean_table_resources()
- How to insert load / into cstore foreign tables in order HOT 1
- Impact of number of partitions on cstore tables
- Skip indexes are not in use HOT 2
- make installcheck failed, "ERROR: could not open file ... for writing: Permission denied" HOT 1
- Support for PostgreSQL15 HOT 1
- v1.7.0 download files does not support PostgreSQL 13 HOT 1
- 目录不存在
- Unable to upgrade from cstore_fdw to citus
- pg14 is support?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cstore_fdw.