-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set default search path for PostgreSQL functions.
Resolves #525.
- Loading branch information
1 parent
0c1d2c4
commit 96c9987
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
registry-persistence/src/main/resources/liquibase/146-function-search-paths.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd"> | ||
|
||
<!-- Set the search paths to public. For security, VACUUM uses an empty search path and fails otherwise. | ||
https://stackoverflow.com/questions/65237130/getting-function-does-not-exist-error-in-vacuumdb --> | ||
<changeSet id="146" author="mblissett"> | ||
<sql> | ||
ALTER FUNCTION collection_change_trigger SET search_path = public; | ||
ALTER FUNCTION collection_contact_change_trigger SET search_path = public; | ||
ALTER FUNCTION collection_descriptor_change_trigger SET search_path = public; | ||
ALTER FUNCTION collection_descriptor_group_change_trigger SET search_path = public; | ||
ALTER FUNCTION collection_descriptor_verbatim_change_trigger SET search_path = public; | ||
ALTER FUNCTION contact_change_trigger SET search_path = public; | ||
ALTER FUNCTION dataset_change_trigger SET search_path = public; | ||
ALTER FUNCTION installation_change_trigger SET search_path = public; | ||
ALTER FUNCTION institution_change_trigger SET search_path = public; | ||
ALTER FUNCTION network_change_trigger SET search_path = public; | ||
ALTER FUNCTION node_change_trigger SET search_path = public; | ||
ALTER FUNCTION organization_change_trigger SET search_path = public; | ||
ALTER FUNCTION normalize_name SET search_path = public; | ||
</sql> | ||
</changeSet> | ||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters