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/utils/builtins.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/utils/builtins.h') diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 42d2d81173d..7caf379a115 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: builtins.h,v 1.142 2000/11/21 03:23:20 tgl Exp $ + * $Id: builtins.h,v 1.143 2000/11/25 20:33:54 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -376,6 +376,7 @@ extern Pattern_Prefix_Status pattern_fixed_prefix(char *patt, Pattern_Type ptype, char **prefix, char **rest); +extern bool locale_is_like_safe(void); extern char *make_greater_string(const char *str, Oid datatype); /* tid.c */ -- cgit v1.2.3