Skip to content

Commit

Permalink
Correct postgres retention_period param syntax
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 and github-actions committed Nov 19, 2024
1 parent f3de6e4 commit c7ccf29
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 c7ccf29

Please sign in to comment.