fix(postgres): accept full_page_writes off on Amazon Aurora PostgreSQL only (1.1 line) #10

Merged
james.maes merged 1 commits from fix/aurora-full-page-writes-1.1 into release/1.1 2026-11-10 15:40:16 +00:00
1 Commits
Author SHA1 Message Date
james.maesandClaude Fable 5.2 66f10bc238 fix(postgres): accept full_page_writes off on Amazon Aurora PostgreSQL only
maven / build (push) Successful in 13m48s
build / maven (push) Successful in 13m48s
Generation qualification refused every Amazon Aurora PostgreSQL server:
Aurora always reports full_page_writes = off and has no parameter to change
it, because its storage layer does not write torn pages.

The settings query now also returns
to_regprocedure('aurora_version()') IS NOT NULL (true on Aurora, false on
stock PostgreSQL, never an error). full_page_writes = off is accepted only
when that is true. Stock PostgreSQL must still report it on, and fsync on,
synchronous_commit on or remote_apply and every other check are unchanged
on both. The refusal text now says full-page writes are not required on
Aurora.

Tests run on a real postgres:17 engine whose settings are really changed;
only Aurora is simulated, by creating a function named aurora_version() in
the test database.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 09:13:01 -06:00