Choose rdspg-lab-pg18, then choose Edit. Enter log_connections in Filter Parameters:
log_connections is shown. In PostgreSQL 18, its Data type is list: you choose which phases of a connection to log.receipt,authentication,authorization.
Before PostgreSQL 18, log_connections was a Boolean (1 or 0). The value receipt,authentication,authorization has the same effect as the old value 1. The value all also logs the time that each connection takes to set up.
Replace the filter with log_min_duration_statement:
log_min_duration_statement is shown. The value is in milliseconds.4000.
Choose Parameter groups, select rdspg-lab-pg18, then choose Actions > Compare:
default.postgres18.
Choose Close.
aws rds modify-db-parameter-group \
--db-parameter-group-name rdspg-lab-pg18 \
--parameters \
"ParameterName=log_connections,ParameterValue='receipt,authentication,authorization',ApplyMethod=immediate" \
"ParameterName=log_min_duration_statement,ParameterValue=4000,ApplyMethod=immediate"
aws rds describe-db-parameters \
--db-parameter-group-name rdspg-lab-pg18 \
--source user \
--query 'Parameters[].[ParameterName,ParameterValue,ApplyType]' \
--output table