Do not hard-code session search_path at start of extension

This commit is contained in:
Sandro Santilli 2014-05-06 10:54:37 +02:00
parent 9b6f9e21f2
commit 574ce7997d

View File

@ -19,7 +19,7 @@ PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS) include $(PGXS)
$(EXTENSION)--$(EXTVERSION).sql: $(CDBSCRIPTS) cartodb_hooks.sql Makefile $(EXTENSION)--$(EXTVERSION).sql: $(CDBSCRIPTS) cartodb_hooks.sql Makefile
echo "SET search_path TO cartodb,public,pg_catalog;" > $@ : > $@
cat $(CDBSCRIPTS) | \ cat $(CDBSCRIPTS) | \
sed -e 's/\<public\./cartodb./g' \ sed -e 's/\<public\./cartodb./g' \
-e 's/:DATABASE_USERNAME/cdb_org_admin/g' >> $@ -e 's/:DATABASE_USERNAME/cdb_org_admin/g' >> $@