aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/init/postinit.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/utils/init/postinit.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/utils/init/postinit.c')
-rw-r--r--src/backend/utils/init/postinit.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c
index ba446310530..69d4d974099 100644
--- a/src/backend/utils/init/postinit.c
+++ b/src/backend/utils/init/postinit.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.131 2003/12/12 18:45:09 petere Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.132 2004/05/27 17:12:54 tgl Exp $
*
*
*-------------------------------------------------------------------------
@@ -326,6 +326,13 @@ InitPostgres(const char *dbname, const char *username)
AmiTransactionOverride(bootstrap);
/*
+ * Initialize local process's access to XLOG. In bootstrap case
+ * we may skip this since StartupXLOG() was run instead.
+ */
+ if (!bootstrap)
+ InitXLOGAccess();
+
+ /*
* Initialize the relation descriptor cache. This must create at
* least the minimum set of "nailed-in" cache entries. No catalog
* access happens here.