Skip to content

Commit b5e96ea

Browse files
committed
Make pgspot no longer complain about CREATE OR REPLACE FUNCTION
Using CREATE OR REPLACE FUNCTION is not a problem when used in an extension context because upstream changed the code to require the function is owned by the extension if it is preexisting so it cannot be shadowed by user controlled functions.
1 parent 5ca6af1 commit b5e96ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/pgspot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# time_bucket with offset is intentional without explicit search_path to allow for inlining
1515
# policy_compression, policy_compression_execute, cagg_migrate_execute_plan and cagg_migrate
1616
# do not have explicit search_path because this would prevent them doing transaction control
17-
PGSPOT_OPTS: --proc-without-search-path
17+
PGSPOT_OPTS: --ignore PS002 --proc-without-search-path
1818
'extschema.time_bucket(bucket_width interval,ts timestamp,"offset" interval)'
1919
--proc-without-search-path 'extschema.time_bucket(bucket_width interval,ts timestamptz,"offset" interval)'
2020
--proc-without-search-path 'extschema.time_bucket(bucket_width interval,ts date,"offset" interval)'

0 commit comments

Comments
 (0)