Do not hard-code session search_path at start of extension
This commit is contained in:
parent
9b6f9e21f2
commit
574ce7997d
2
Makefile
2
Makefile
@ -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' >> $@
|
||||||
|
Loading…
Reference in New Issue
Block a user