Get rid of the former rather baroque mechanism for propagating the values
Tom Lane <tgl@sss.pgh.pa.us>
Get rid of the former rather baroque mechanism for propagating the values of ThisStartUpID and RedoRecPtr into new backends. It's a lot easier just to make them all grab the values out of shared memory during startup. This helps to decouple the postmaster from checkpoint execution, which I need since I'm intending to let the bgwriter do it instead, and it also fixes a bug in the Win32 port: ThisStartUpID wasn't getting propagated at all AFAICS. (Doesn't give me a lot of faith in the amount of testing that port has gotten.)
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam.c | modified | +2 −2 |
| src/backend/access/transam/xlog.c | modified | +17 −34 |
| src/backend/bootstrap/bootstrap.c | modified | +4 −3 |
| src/backend/postmaster/postmaster.c | modified | +5 −15 |
| src/backend/utils/init/postinit.c | modified | +8 −1 |
| src/include/access/xlog.h | modified | +2 −4 |