Why cannot I create another user manually when connected through pgbouncer?
17 views
Skip to first unread message
Ivan Kurnosov
unread,
May 8, 2024, 2:20:39 PM5/8/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Postgres Operator
Hi,
I connect with a role that has `CREATEROLE` grant, yet when I connect through crunchhydata operator pgbouncer and run `CREATE ROLE ...` to create another user - it returns `ERROR: permission denied to create role`. I can create one when am connected to postgresql primary pod directly.
What part of pgbouncer configuration forbids it?
Thank you!
Ivan Kurnosov
unread,
May 8, 2024, 5:18:43 PM5/8/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Postgres Operator
Okay, it looks like permissions are not immediately reflected: and if you connect through pgbouncer with account credentials that don't have permissions, then grant them - you need to kill the connection on pgbouncer before the permissions applied. Thank you! :-)
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ivan Kurnosov, Postgres Operator
Hi Ivan,
I'm glad you were able to get this sorted out. In the future, I do recommend posting your questions in the the Crunchy Discord server. This specific community has migrated to Discord, so this should get your question additional visibility among the community.