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

Add Alternate functions accepting a regprocedure Param #49

Open
theory opened this issue Aug 13, 2013 · 0 comments
Open

Add Alternate functions accepting a regprocedure Param #49

theory opened this issue Aug 13, 2013 · 0 comments

Comments

@theory
Copy link
Owner

theory commented Aug 13, 2013

Instead of requiring that the schema, function name, and array of param types be passed separately, consider adding alternate functions for the function-testing assertions that accept a regprocedure parameter. Would be especially useful for function_privs_are(), so it could be called like so:

SELECT function_privs_are(
    'blanket.save_thingy( int, text, text, smallint, smallint, numeric )',
     'betty', 'EXECUTE', 'betty should have EXECUTE on save_thingy()'
);

The existing functions might be updated to use this version under the hood. Suggested by Jim Nasby.

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

No branches or pull requests

1 participant