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/backend/bootstrap/bootstrap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/bootstrap/bootstrap.c') diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index 2c03e5e1359..3f2bf76a36e 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.100 2000/11/21 21:15:59 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.101 2000/11/25 20:33:51 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -321,6 +321,8 @@ BootstrapMain(int argc, char *argv[]) } } + XLOGPathInit(); + BaseInit(); if (!IsUnderPostmaster) @@ -333,8 +335,6 @@ BootstrapMain(int argc, char *argv[]) /* * XLOG operations */ - snprintf(XLogDir, MAXPGPATH, "%s/pg_xlog", DataDir); - snprintf(ControlFilePath, MAXPGPATH, "%s/global/pg_control", DataDir); SetProcessingMode(NormalProcessing); if (xlogop == BS_XLOG_NOP) StartupXLOG(); -- cgit v1.2.3