Avoid assuming there will be only 3 states for synchronous_commit.
Simon Riggs <simon@2ndQuadrant.com>
Avoid assuming there will be only 3 states for synchronous_commit. Also avoid hardcoding the current default state by giving it the name "on" and replace with a meaningful name that reflects its behaviour. Coding only, no change in behaviour.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xact.c | modified | +1 −1 |
| src/backend/postmaster/autovacuum.c | modified | +1 −1 |
| src/backend/utils/misc/guc.c | modified | +1 −1 |
| src/include/access/xact.h | modified | +6 −3 |
| src/include/replication/syncrep.h | modified | +1 −1 |