From bbea3643a3a6425f92d0db9ff16c7f73a31a466c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 25 Nov 2000 20:33:54 +0000 Subject: Store current LC_COLLATE and LC_CTYPE settings in pg_control during initdb; re-adopt these settings at every postmaster or standalone-backend startup. This should fix problems with indexes becoming corrupt due to failure to provide consistent locale environment for postmaster at all times. Also, refuse to start up a non-locale-enabled compilation in a database originally initdb'd with a non-C locale. Suppress LIKE index optimization if locale is not "C" or "POSIX" (are there any other locales where it's safe?). Issue NOTICE during initdb if selected locale disables LIKE optimization. --- src/include/access/xlog.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/include/access') diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index 493a0e9091b..4654296e116 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -3,7 +3,7 @@ * * PostgreSQL transaction log manager * - * $Header: /cvsroot/pgsql/src/include/access/xlog.h,v 1.10 2000/11/21 21:16:05 petere Exp $ + * $Header: /cvsroot/pgsql/src/include/access/xlog.h,v 1.11 2000/11/25 20:33:53 tgl Exp $ */ #ifndef XLOG_H #define XLOG_H @@ -107,13 +107,11 @@ extern void xlog_desc(char *buf, uint8 xl_info, char* rec); extern void UpdateControlFile(void); extern int XLOGShmemSize(void); extern void XLOGShmemInit(void); +extern void XLOGPathInit(void); extern void BootStrapXLOG(void); extern void StartupXLOG(void); extern void ShutdownXLOG(void); extern void CreateCheckPoint(bool shutdown); extern void SetThisStartUpID(void); -extern char XLogDir[]; -extern char ControlFilePath[]; - #endif /* XLOG_H */ -- cgit v1.2.3