Skip to content

Commit

Permalink
Correct postgres retention_period param syntax (#49232)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
programmerq authored Nov 19, 2024
1 parent efdba78 commit 7a9dfbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/includes/config-reference/auth-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,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
Expand Down

0 comments on commit 7a9dfbd

Please sign in to comment.