Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use explicit schema in format calls in DO blocks #112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sql/pgsodium--1.1.1--1.2.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ BEGIN
'pgsodium_keymaker']
LOOP
IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = new_role) THEN
EXECUTE format($i$
EXECUTE pg_catalog.format($i$
CREATE ROLE %I WITH
NOLOGIN
NOSUPERUSER
Expand Down Expand Up @@ -152,7 +152,7 @@ BEGIN
'crypto_sign_new_keypair'
]
LOOP
EXECUTE format($i$
EXECUTE pg_catalog.format($i$
REVOKE ALL ON FUNCTION %s FROM PUBLIC;
GRANT EXECUTE ON FUNCTION %s TO pgsodium_keymaker;
$i$, func, func);
Expand Down Expand Up @@ -188,7 +188,7 @@ BEGIN
'crypto_sign_update_agg2'
]
LOOP
EXECUTE format($i$
EXECUTE pg_catalog.format($i$
REVOKE ALL ON FUNCTION %s FROM PUBLIC;
GRANT EXECUTE ON FUNCTION %s TO pgsodium_keyholder;
$i$, func, func);
Expand Down Expand Up @@ -220,7 +220,7 @@ BEGIN
'crypto_shorthash'
]
LOOP
EXECUTE format($i$
EXECUTE pg_catalog.format($i$
REVOKE ALL ON FUNCTION %s FROM PUBLIC;
GRANT EXECUTE ON FUNCTION %s TO pgsodium_keyiduser;
$i$, func, func);
Expand Down
6 changes: 3 additions & 3 deletions sql/pgsodium--1.2.0--2.0.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ BEGIN
'crypto_aead_det_keygen'
]
LOOP
EXECUTE format($i$
EXECUTE pg_catalog.format($i$
REVOKE ALL ON FUNCTION %s FROM PUBLIC;
GRANT EXECUTE ON FUNCTION %s TO pgsodium_keymaker;
$i$, func, func);
Expand All @@ -194,7 +194,7 @@ BEGIN
'crypto_aead_det_decrypt(bytea, bytea, bytea, bytea)'
]
LOOP
EXECUTE format($i$
EXECUTE pg_catalog.format($i$
REVOKE ALL ON FUNCTION %s FROM PUBLIC;
GRANT EXECUTE ON FUNCTION %s TO pgsodium_keyholder;
$i$, func, func);
Expand All @@ -214,7 +214,7 @@ BEGIN
'crypto_aead_det_decrypt(bytea, bytea, bigint, bytea, bytea)'
]
LOOP
EXECUTE format($i$
EXECUTE pg_catalog.format($i$
REVOKE ALL ON FUNCTION %s FROM PUBLIC;
GRANT EXECUTE ON FUNCTION %s TO pgsodium_keyiduser;
$i$, func, func);
Expand Down
2 changes: 1 addition & 1 deletion sql/pgsodium--3.0.4--3.0.5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ BEGIN
'pgsodium.crypto_aead_ietf_decrypt(bytea, bytea, bytea, uuid)'
]
LOOP
EXECUTE format($i$
EXECUTE pg_catalog.format($i$
REVOKE ALL ON FUNCTION %s FROM PUBLIC;
GRANT EXECUTE ON FUNCTION %s TO pgsodium_keyiduser;
$i$, func, func);
Expand Down