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
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
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! :-)

To unsubscribe from this topic, visit https://groups.google.com/a/crunchydata.com/d/topic/postgres-operator/4idX3ZFjYBk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to postgres-opera...@crunchydata.com.


--
With best regards, Ivan Kurnosov

Joseph Mckulka

unread,
May 8, 2024, 5:27:42 PM5/8/24
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.

Thanks!

- Joseph
Reply all
Reply to author
Forward
0 new messages