Set search path before installing/update the extension

See #324
This commit is contained in:
Javier Goizueta 2016-12-20 11:47:51 +01:00
parent 15438db59b
commit 18df3368ef
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,6 @@
--DO NOT MODIFY THIS FILE, IT IS GENERATED AUTOMATICALLY FROM SOURCES
-- Complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION cdb_dataservices_client" to load this file. \quit
-- Make sure we have a sane search path to create/update the extension
SET search_path = "$user",public,cdb_dataservices_client;

View File

@ -2,4 +2,7 @@
-- Complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "ALTER EXTENSION cdb_dataservices_client UPDATE TO '<%= version %>'" to load this file. \quit
-- Make sure we have a sane search path to create/update the extension
SET search_path = "$user",public,cdb_dataservices_client;
-- HERE goes your code to upgrade/downgrade