You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only superuser roles or roles with BYPASSRLS can specify BYPASSRLS.
Currently supautils has custom code for granting BYPASSRLS via privileged_role, which internally we turn into superuser.. but this is no longer necessary.
Solution
Disable the BYPASSRLS feature with privileged_role for pg >= 16. Doing ALTER ROLE privileged_role BYPASSRLS is enough for allowing granting BYPASSRLS to other roles.
Problem
On pg 15 and lower https://www.postgresql.org/docs/15/sql-createrole.html
For pg 16 and up https://www.postgresql.org/docs/16/sql-createrole.html
Currently supautils has custom code for granting BYPASSRLS via
privileged_role
, which internally we turn into superuser.. but this is no longer necessary.Solution
Disable the BYPASSRLS feature with privileged_role for pg >= 16. Doing
ALTER ROLE privileged_role BYPASSRLS
is enough for allowing granting BYPASSRLS to other roles.cc @soedirgo
The text was updated successfully, but these errors were encountered: