PostgreSQLParameters sets the parameters required by pgAudit.
(outParameters *postgres.Parameters)
| 52 | |
| 53 | // PostgreSQLParameters sets the parameters required by pgAudit. |
| 54 | func PostgreSQLParameters(outParameters *postgres.Parameters) { |
| 55 | |
| 56 | // Load the shared library when PostgreSQL starts. |
| 57 | // PostgreSQL must be restarted when changing this value. |
| 58 | // - https://github.com/pgaudit/pgaudit#settings |
| 59 | // - https://www.postgresql.org/docs/current/runtime-config-client.html |
| 60 | outParameters.Mandatory.AppendToList("shared_preload_libraries", "pgaudit") |
| 61 | } |