Fix failure to guarantee that a checkpoint will write out pg_clog updates
Tom Lane <tgl@sss.pgh.pa.us>
Fix failure to guarantee that a checkpoint will write out pg_clog updates for transaction commits that occurred just before the checkpoint. This is an EXTREMELY serious bug --- kudos to Satoshi Okada for creating a reproducible test case to prove its existence.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xact.c | modified | +23 −3 |
| src/backend/access/transam/xlog.c | modified | +15 −3 |
| src/include/storage/lwlock.h | modified | +2 −1 |