From 75a40c9b636260f9fff837f30200091cf7282c1f Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 22 May 2014 12:32:52 +0200 Subject: [PATCH] Tag CDB_TableMetadata as a configuration table Closes #21 --- Makefile | 3 ++- cartodb_config_dump.sql | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 cartodb_config_dump.sql 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',''); +