aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/heap/heapam.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-05-27 17:12:57 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-05-27 17:12:57 +0000
commit16974ee9103ef7908e81869687b3fc3719e64a4e (patch)
treea48db6dabaebe0cf1d255633a683bac984139420 /src/backend/access/heap/heapam.c
parentbb44a7c52521bc3c5c6ee81a546ea82855690e81 (diff)
downloadpostgresql-16974ee9103ef7908e81869687b3fc3719e64a4e.tar.gz
postgresql-16974ee9103ef7908e81869687b3fc3719e64a4e.zip
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.)
Diffstat (limited to 'src/backend/access/heap/heapam.c')
-rw-r--r--src/backend/access/heap/heapam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c
index 44b472d7e3b..cb1e6893053 100644
--- a/src/backend/access/heap/heapam.c
+++ b/src/backend/access/heap/heapam.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.167 2004/05/20 15:07:30 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.168 2004/05/27 17:12:37 tgl Exp $
*
*
* INTERFACE ROUTINES
@@ -1902,7 +1902,7 @@ l3:
* XLOG stuff: no logging is required as long as we have no
* savepoints. For savepoints private log could be used...
*/
- ((PageHeader) BufferGetPage(*buffer))->pd_sui = ThisStartUpID;
+ PageSetSUI(BufferGetPage(*buffer), ThisStartUpID);
/* store transaction information of xact marking the tuple */
tuple->t_data->t_infomask &= ~(HEAP_XMAX_COMMITTED |