- Documentation
RDS for PostgreSQL
FAQs
Log
Log
This topic summarizes frequently asked questions about RDS for PostgreSQL logs.
How long can I store the slow log details?
Slow log details can be stored for 30 days.
How long can I store the slow log details? Can I customize the slow log time?
By default, SQL statements exceeding 1 second are defined as a slow log; you can modify the long_query_time parameter in the parameter setting to customize the slow log time. For details, refer to Modify parameters. How long can primary/secondary switchover logs be stored?
Primary/secondary switchover logs can be stored for 30 days.
What are the precautions for switching primary node?
- Please make sure that your applications have automatic reconnection mechanisms.
- If a read-only node is mounted under the instance, the data of the read-only node can be delayed for several minutes after primary/secondary switchover, because it must rebuild the replication link and synchronize the incremental data.
- Switchover can be completed within 5 seconds without a delay in primary/secondary replication.
Last updated: 2025.11.17 16:15:12