Performance impact of excessive logging in Amazon Aurora PostgreSQL

AWS has published a reproducible experiment on Amazon Aurora PostgreSQL-Compatible Edition measuring how error and audit logging affect database performance, with findings that also apply to Amazon RDS for PostgreSQL. Each log line must be formatted and written, and exporting logs sends a copy to a second destination such as Amazon CloudWatch Logs. At low concurrency, verbose logging cost almost nothing, but at high concurrency verbose statement logging alone reduced throughput by about 10 percent, with statement-level audit logging adding further overhead.

AI-written summary, checked against the cited sources. How summaries work

Read at AWS Database Blog