aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop
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/backend/tcop
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/backend/tcop')
-rw-r--r--src/backend/tcop/postgres.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index f7d3e1c1b02..0f8dec00d89 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.190 2000/11/25 19:05:42 petere Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.191 2000/11/25 20:33:52 tgl Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -1525,9 +1525,8 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
*/
on_proc_exit(UnlinkPidFile, 0);
+ XLOGPathInit();
BaseInit();
- snprintf(XLogDir, MAXPGPATH, "%s/pg_xlog", DataDir);
- snprintf(ControlFilePath, MAXPGPATH, "%s/global/pg_control", DataDir);
StartupXLOG();
}
@@ -1636,7 +1635,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.190 $ $Date: 2000/11/25 19:05:42 $\n");
+ puts("$Revision: 1.191 $ $Date: 2000/11/25 20:33:52 $\n");
}
/*