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

pg func discovery ignore sys schemas #946

Merged
merged 1 commit into from
Oct 17, 2023
Merged
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
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ test-int: clean-test install-sqlx
fi

# Run integration tests and save its output as the new expected output
bless: start clean-test bless-insta
bless: restart clean-test bless-insta
rm -rf tests/temp
cargo test -p martin --features bless-tests
tests/test.sh
Expand Down
2 changes: 2 additions & 0 deletions martin/src/pg/scripts/query_available_function.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ WITH
jsonb_agg(data_type::text ORDER BY ordinal_position) as input_types
FROM information_schema.parameters
WHERE parameter_mode = 'IN'
AND specific_schema NOT IN ('pg_catalog', 'information_schema')
GROUP BY specific_name),
--
outputs AS (
Expand All @@ -32,6 +33,7 @@ WITH
jsonb_agg(parameter_name::text ORDER BY ordinal_position) as out_names
FROM information_schema.parameters
WHERE parameter_mode = 'OUT'
AND specific_schema NOT IN ('pg_catalog', 'information_schema')
GROUP BY specific_name),
--
comments AS (
Expand Down
Loading