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
If the IN SCHEMA schema_name part is omitted, the created privileges is set globally.
The text was updated successfully, but these errors were encountered:
michaelkebe
changed the title
postgresql_privs should allow setting default privileges globally
postgresql_privs should allow to set default privileges globally
Feb 24, 2022
@michaelkebe Thanks for pointing that out. It's true, the code just set schema = 'default', if there is no schema present in the ansible module call.
After a short look, it might not so easy to remove that part, as we rely on that default set in several other calls as well. I will have a look if that could be changed.
SUMMARY
postgresql_privs should allow to create global default privileges (without a schema) on a database.
ISSUE TYPE
COMPONENT NAME
postgresql_privs
ADDITIONAL INFORMATION
Currently it only possible to create default privileges with a schema (which defaults to public, if not set). The PostgreSQL documentation says:
If the
IN SCHEMA schema_name
part is omitted, the created privileges is set globally.The text was updated successfully, but these errors were encountered: