2010-09-21 04:08:53 +08:00
|
|
|
# contrib/cube/Makefile
|
2000-12-12 04:39:15 +08:00
|
|
|
|
2001-09-06 18:49:30 +08:00
|
|
|
MODULE_big = cube
|
2019-11-06 06:41:07 +08:00
|
|
|
OBJS = \
|
|
|
|
$(WIN32RES) \
|
|
|
|
cube.o \
|
|
|
|
cubeparse.o
|
2000-12-12 04:39:15 +08:00
|
|
|
|
2011-02-14 09:06:41 +08:00
|
|
|
EXTENSION = cube
|
Support index-only scans in contrib/cube and contrib/seg GiST indexes.
To do this, we only have to remove the compress and decompress support
functions, which have never done anything more than detoasting.
In the wake of commit d3a4f89d8, this results in automatically enabling
index-only scans, since the core code will now know that the stored
representation is the same as the original data (up to detoasting).
The only exciting part of this is that ALTER OPERATOR FAMILY lacks
a way to drop a support function that was declared as being part of
an opclass rather than being loose in the family. For the moment,
we'll hack our way to a solution with a manual update of the pg_depend
entry type, which is what distinguishes the two cases. Perhaps
someday it'll be worth providing a cleaner way to do that, but for
now it seems like a very niche problem.
Note that the underlying C functions remain, to support use of the shared
libraries with older versions of the modules' SQL declarations. Someday
we may be able to remove them, but not soon.
Andrey Borodin, reviewed by me
Discussion: https://postgr.es/m/D0F53A05-4F4A-4DEC-8339-3C069FA0EE11@yandex-team.ru
2017-11-21 09:25:18 +08:00
|
|
|
DATA = cube--1.2.sql cube--1.2--1.3.sql cube--1.3--1.4.sql \
|
2020-02-20 05:59:14 +08:00
|
|
|
cube--1.1--1.2.sql cube--1.0--1.1.sql
|
2014-07-15 02:07:52 +08:00
|
|
|
PGFILEDESC = "cube - multidimensional cube data type"
|
2011-02-14 09:06:41 +08:00
|
|
|
|
2018-08-01 02:58:39 +08:00
|
|
|
HEADERS = cubedata.h
|
|
|
|
|
2018-08-30 19:09:25 +08:00
|
|
|
REGRESS = cube cube_sci
|
2000-12-12 04:39:15 +08:00
|
|
|
|
2006-04-04 02:47:41 +08:00
|
|
|
EXTRA_CLEAN = y.tab.c y.tab.h
|
2004-08-21 04:13:10 +08:00
|
|
|
|
2005-07-25 07:30:10 +08:00
|
|
|
SHLIB_LINK += $(filter -lm, $(LIBS))
|
2004-08-21 04:13:10 +08:00
|
|
|
|
|
|
|
ifdef USE_PGXS
|
2007-06-27 06:05:04 +08:00
|
|
|
PG_CONFIG = pg_config
|
|
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
2004-08-21 04:13:10 +08:00
|
|
|
include $(PGXS)
|
|
|
|
else
|
|
|
|
subdir = contrib/cube
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
|
|
endif
|
|
|
|
|
2000-12-12 04:39:15 +08:00
|
|
|
|
2002-11-02 06:52:34 +08:00
|
|
|
# cubescan is compiled as part of cubeparse
|
2009-08-29 04:26:19 +08:00
|
|
|
cubeparse.o: cubescan.c
|
2002-11-02 06:52:34 +08:00
|
|
|
|
2009-08-29 04:26:19 +08:00
|
|
|
distprep: cubeparse.c cubescan.c
|
2006-04-04 02:47:41 +08:00
|
|
|
|
|
|
|
maintainer-clean:
|
2009-08-29 04:26:19 +08:00
|
|
|
rm -f cubeparse.c cubescan.c
|