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/utils/adt/cash.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/backend/utils/adt/cash.c') diff --git a/src/backend/utils/adt/cash.c b/src/backend/utils/adt/cash.c index 696559a59ea..f081e2568c2 100644 --- a/src/backend/utils/adt/cash.c +++ b/src/backend/utils/adt/cash.c @@ -9,7 +9,7 @@ * workings can be found in the book "Software Solutions in C" by * Dale Schumacher, Academic Press, ISBN: 0-12-632360-7. * - * $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.46 2000/11/18 03:55:51 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.47 2000/11/25 20:33:52 tgl Exp $ */ #include @@ -84,10 +84,6 @@ cash_in(PG_FUNCTION_ARGS) *nsymbol; #ifdef USE_LOCALE -#ifdef CASHDEBUG - setlocale(LC_ALL, ""); - lconvert = localeconv(); -#endif if (lconvert == NULL) lconvert = localeconv(); -- cgit v1.2.3