MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / PostgreSQLParameters

Function PostgreSQLParameters

internal/pgaudit/postgres.go:54–61  ·  view source on GitHub ↗

PostgreSQLParameters sets the parameters required by pgAudit.

(outParameters *postgres.Parameters)

Source from the content-addressed store, hash-verified

52
53// PostgreSQLParameters sets the parameters required by pgAudit.
54func 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}

Callers 2

TestPostgreSQLParametersFunction · 0.70

Calls 1

AppendToListMethod · 0.80

Tested by 1

TestPostgreSQLParametersFunction · 0.56