In order to re-calculate min/max values for groups where the min or max value is deleted, we need the view query definition in string form. However, pg_get_viewdef cannot be used for this purpose because IMMV's defenition is in pg_ivm_immv but not pg_rewrite. Therefore, we have to convert query definition in pg_ivm_immv to query definition string. We can use pg_get_querydef in PG15, but we cannot in PG14 or earlier, so we use codes in ruleutil.c copied from PG13 or PG14 depending versions.
19 lines
373 B
Makefile
19 lines
373 B
Makefile
# contrib/pg_ivm/Makefile
|
|
|
|
MODULE_big = pg_ivm
|
|
OBJS = \
|
|
$(WIN32RES) \
|
|
createas.o \
|
|
matview.o \
|
|
pg_ivm.o \
|
|
ruleutils.o
|
|
PGFILEDESC = "pg_ivm - incremental view maintenance on PostgreSQL"
|
|
|
|
EXTENSION = pg_ivm
|
|
DATA = pg_ivm--1.0.sql pg_ivm--1.0--1.1.sql
|
|
|
|
REGRESS = pg_ivm create_immv refresh_immv
|
|
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|