Is it possible to make PostgreSQL log user creation, user deletion and change in user permissions?
|
feedback
|
|
Yes, add in your postgresql.conf and restart (or just reload) db server:
That works with createuser, dropuser wrappers, CREATE/DROP ROLE/USER and ALTER ROLE/USER statements as I checked:
http://www.postgresql.org/docs/current/static/runtime-config-logging.html#GUC-LOG-STATEMENT There is one drawback, that you have another DDL statements logged as well. | ||||
|
feedback
|