Correct postgres retention_period param syntax (#46898)

When trying to use `retention_period` query param with a `postgresql://` URI, this causes a failure.

`server error (FATAL: unrecognized configuration parameter "retention_period" (SQLSTATE 42704))`

The correct syntax is to include it in the fragment portion of the URI instead.
This commit is contained in:
Jeff Anderson
2024-11-19 18:53:58 +00:00
committed by GitHub
parent e92dd312a4
commit 46e2fb26f1
@@ -58,7 +58,7 @@ teleport:
# consume the retention period via a query parameter in the audit_events_uri. See the examples below
# for how to configure the retention period for other backends.
# Firestore: firestore://events_table_name?eventRetentionPeriod=10d
# Postgres: postgresql://user_name@database-address/teleport_audit?retention_period=10d
# Postgres: postgresql://user_name@database-address/teleport_audit#retention_period=240h
retention_period: 365d
# minimum/maximum read capacity in units