Skip to content

Conversation

c2main
Copy link

@c2main c2main commented Aug 17, 2025

code, test and doc overall ok, though there are some other references to functions_are() that I didn't explore yet.

And add doc for `procedures_are()`
c2main added 5 commits August 17, 2025 16:33
copy pasted with minor edition from `functions_are()`
It is now excluding procedures from the list of functions.
See `procedures_are()` instead.
@c2main c2main force-pushed the add-procedures_are branch from ce21421 to 2dcd43b Compare August 17, 2025 15:36
@hettie-d
Copy link

Thank you!

Copy link
Owner

@theory theory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very thorough, but I think we should consider a deprecation period and a warning. Thoughts?

@@ -4979,7 +4979,7 @@ RETURNS TEXT AS $$
SELECT _are(
'functions',
ARRAY(
SELECT name FROM tap_funky WHERE schema = $1
SELECT name FROM tap_funky WHERE schema = $1 and kind != 'p'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do we do about people who have used these functions for procedures? With this change, their tests will start failing.

I wonder if maybe we should introduce a warning with a deprecation notice and instructions for them to update their tests when kind = 'p', and then remove it in a year or so.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The migration file is missing the changes to the functions_are() functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants