diff --git a/source/administration/monitoring/publish-events-to-postgresql.rst b/source/administration/monitoring/publish-events-to-postgresql.rst index 393ebae1..f400152b 100644 --- a/source/administration/monitoring/publish-events-to-postgresql.rst +++ b/source/administration/monitoring/publish-events-to-postgresql.rst @@ -57,7 +57,7 @@ variables *or* by setting runtime configuration settings. :mc:`minio server` process applies the specified settings on its next startup. - The following example code sets *all* environment variables + The following example code sets *all* environment variables related to configuring a PostgreSQL service endpoint. The minimum *required* variables are: @@ -71,7 +71,7 @@ variables *or* by setting runtime configuration settings. :class: copyable set MINIO_NOTIFY_POSTGRES_ENABLE_="on" - set MINIO_NOTIFY_POSTGRES_CONNECTION_STRING_="host=postgresql-endpoint.example.net port=4222" + set MINIO_NOTIFY_POSTGRES_CONNECTION_STRING_="options='-c search_path=minio' host=postgresql-endpoint.example.net port=4222" set MINIO_NOTIFY_POSTGRES_TABLE_="minioevents" set MINIO_NOTIFY_POSTGRES_FORMAT_="namespace|access" set MINIO_NOTIFY_POSTGRES_MAX_OPEN_CONNECTIONS_="2" @@ -85,7 +85,7 @@ variables *or* by setting runtime configuration settings. :class: copyable export MINIO_NOTIFY_POSTGRES_ENABLE_="on" - export MINIO_NOTIFY_POSTGRES_CONNECTION_STRING_="host=postgresql-endpoint.example.net port=4222" + export MINIO_NOTIFY_POSTGRES_CONNECTION_STRING_="options='-c search_path=minio' host=postgresql-endpoint.example.net port=4222" export MINIO_NOTIFY_POSTGRES_TABLE_="minioevents" export MINIO_NOTIFY_POSTGRES_FORMAT_="namespace|access" export MINIO_NOTIFY_POSTGRES_MAX_OPEN_CONNECTIONS_="2"