diff --git a/Makefile b/Makefile index 45ae5da..195840d 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) -$(EXTENSION)--$(EXTVERSION).sql: $(CDBSCRIPTS) cartodb_hooks.sql cartodb_version.sql Makefile +$(EXTENSION)--$(EXTVERSION).sql: $(CDBSCRIPTS) cartodb_hooks.sql cartodb_version.sql cartodb_config_dump.sql Makefile echo '\echo Use "CREATE EXTENSION $(EXTENSION)" to load this file. \quit' > $@ cat $(CDBSCRIPTS) | \ sed -e 's/\> $@ cat cartodb_hooks.sql >> $@ cat cartodb_version.sql >> $@ + cat cartodb_config_dump.sql >> $@ $(EXTENSION)--unpackaged--$(EXTVERSION).sql: $(EXTENSION)--$(EXTVERSION).sql util/create_from_unpackaged.sh Makefile ./util/create_from_unpackaged.sh $(EXTVERSION) diff --git a/cartodb_config_dump.sql b/cartodb_config_dump.sql new file mode 100644 index 0000000..36aa652 --- /dev/null +++ b/cartodb_config_dump.sql @@ -0,0 +1,2 @@ +SELECT pg_catalog.pg_extension_config_dump('cartodb.cdb_tablemetadata',''); +