aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-11-25 20:33:54 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-11-25 20:33:54 +0000
commitbbea3643a3a6425f92d0db9ff16c7f73a31a466c (patch)
treef13bea7c027c5e4e5155eb802a16e0e2c1d3a0c8 /src/include
parent0432ce994d3971ced6e336e9f58444d5322c3270 (diff)
downloadpostgresql-bbea3643a3a6425f92d0db9ff16c7f73a31a466c.tar.gz
postgresql-bbea3643a3a6425f92d0db9ff16c7f73a31a466c.zip
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.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/access/xlog.h6
-rw-r--r--src/include/catalog/catversion.h4
-rw-r--r--src/include/utils/builtins.h3
3 files changed, 6 insertions, 7 deletions
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 */
diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h
index 270b52cac97..85e4c02b533 100644
--- a/src/include/catalog/catversion.h
+++ b/src/include/catalog/catversion.h
@@ -37,7 +37,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: catversion.h,v 1.63 2000/11/21 03:23:19 tgl Exp $
+ * $Id: catversion.h,v 1.64 2000/11/25 20:33:53 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -53,6 +53,6 @@
*/
/* yyyymmddN */
-#define CATALOG_VERSION_NO 200011211
+#define CATALOG_VERSION_NO 200011251
#endif
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 */