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

pgmoneta_ext_check_privilege #10

Open
jesperpedersen opened this issue Jun 3, 2024 · 2 comments
Open

pgmoneta_ext_check_privilege #10

jesperpedersen opened this issue Jun 3, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jesperpedersen
Copy link
Member

We need to have a bit mask of the privileges of the role accessing.

So, at least

  • Default
  • pg_checkpoint
  • SUPERUSER

The variable name used should reflect this, so maybe roles -- use #define

@jesperpedersen jesperpedersen added the bug Something isn't working label Jun 3, 2024
@GuChad369
Copy link
Contributor

Should we develop a new function that takes the current roleid as input and returns its highest privileges? Did I understand correctly?

@jesperpedersen
Copy link
Member Author

We just need an easy way to identify which privileges a role has.

Of course if it has SUPERUSER then all bits are set, but if it specific privileges then it will be a bit mask

GuChad369 added a commit to GuChad369/pgmoneta_ext that referenced this issue Jun 17, 2024
GuChad369 added a commit to GuChad369/pgmoneta_ext that referenced this issue Jun 18, 2024
GuChad369 added a commit to GuChad369/pgmoneta_ext that referenced this issue Jun 19, 2024
GuChad369 added a commit to GuChad369/pgmoneta_ext that referenced this issue Jun 21, 2024
GuChad369 added a commit to GuChad369/pgmoneta_ext that referenced this issue Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants