- Newest
- Most votes
- Most comments
When running PostgreSQL as an Amazon Aurora cluster, you're correct that some parameters are handled differently than in standard PostgreSQL installations.
For Aurora PostgreSQL, many PostgreSQL parameters are configurable through Parameter Groups, but some parameters are disabled or can't be modified because Amazon Aurora manages certain aspects of the database differently due to its architecture. Parameter Groups in Aurora are divided into cluster-level parameters (which apply to the entire cluster) and instance-level parameters (which apply to specific database instances).
Regarding the wal_writer_delay parameter specifically, while you can see its value using the SHOW wal_writer_delay command (which returns 200ms as you noted), this parameter might not be modifiable in Aurora PostgreSQL. Aurora has its own storage and WAL handling mechanisms that differ from standard PostgreSQL.
The Write-Ahead Log (WAL) buffer in Aurora PostgreSQL holds transaction data that will later be written to persistent storage. When a client changes data, Aurora PostgreSQL writes these changes to the WAL buffer, and when a client issues a COMMIT, the WAL writer process writes the transaction data to the WAL file.
For your specific concern about data loss with synchronous_commit = off, the standard PostgreSQL documentation states that the maximum delay for transaction durability would be three times the wal_writer_delay value. However, Aurora's architecture for handling WAL might differ from standard PostgreSQL, so this exact relationship may not apply in the same way.
To confirm which parameters you can modify and their current values, you can run:
SELECT name, setting
FROM pg_settings
WHERE name LIKE '%wal%';
If you need to adjust WAL-related behavior for your specific workload requirements, you might want to consider other configurable parameters like wal_buffers or explore Aurora-specific features that address your performance and durability needs.
Sources
Configuring server options - SQL Server to Aurora PostgreSQL Migration Playbook
Essential concepts for Aurora PostgreSQL tuning - Amazon Aurora
Benchmark Amazon RDS for PostgreSQL with Dedicated Log Volumes | AWS Database Blog
answered a year ago
Relevant content
asked 4 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 4 months ago
