summaryrefslogtreecommitdiff
path: root/src/include/access
diff options
context:
space:
mode:
authorAndres Freund2017-09-13 09:12:17 +0000
committerAndres Freund2017-09-14 21:14:34 +0000
commit8356753c212a5865469c9befc4cf1e637a9d8bbc (patch)
tree60fcf71cb5a90a687e5306263d9831e89e413ab4 /src/include/access
parent0a480502b092195a9b25a2f0f199a21d592a9c57 (diff)
Perform only one ReadControlFile() during startup.
Previously we read the control file in multiple places. But soon the segment size will be configurable and stored in the control file, and that needs to be available earlier than it currently is needed. Instead of adding yet another place where it's read, refactor things so there's a single processing of the control file during startup (in EXEC_BACKEND that's every individual backend's startup). Author: Andres Freund Discussion: http://postgr.es/m/20170913092828.aozd3gvvmw67gmyc@alap3.anarazel.de
Diffstat (limited to 'src/include/access')
-rw-r--r--src/include/access/xlog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h
index 66bfb77295b..e0635ab4e68 100644
--- a/src/include/access/xlog.h
+++ b/src/include/access/xlog.h
@@ -261,6 +261,7 @@ extern XLogRecPtr GetFakeLSNForUnloggedRel(void);
extern Size XLOGShmemSize(void);
extern void XLOGShmemInit(void);
extern void BootStrapXLOG(void);
+extern void LocalProcessControlFile(void);
extern void StartupXLOG(void);
extern void ShutdownXLOG(int code, Datum arg);
extern void InitXLOGAccess(void);