[patch] Postgres 7.4 - doc INSTALL/Cygwin - Mailing list pgsql-patches

From jari.aalto@poboxes.com (Jari Aalto)
Subject [patch] Postgres 7.4 - doc INSTALL/Cygwin
Date
Msg-id hdyv3v40.fsf@blue.sea.net
Whole thread Raw
Responses Re: [patch] Postgres 7.4 - doc INSTALL/Cygwin
List pgsql-patches

Here is small patch to help people reading the documentation
under Cygwin.



--- INSTALL.orig    2004-01-16 18:23:24.000000000 +0200
+++ INSTALL    2004-01-17 09:11:22.000000000 +0200
@@ -15,11 +15,24 @@
   mkdir /usr/local/pgsql/data
   chown postgres /usr/local/pgsql/data
   su - postgres
-  /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
+  LC_ALL=C /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
   /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
   /usr/local/pgsql/bin/createdb test
   /usr/local/pgsql/bin/psql test

+Note, Under Cygwin the data installation directory is:
+
+  /var/postgresql/data
+
+In case you have a personal local environment set, the LC_ALL above will fix
+this message:
+
+   creating template1 database in /usr/share/postgresql/data/base/1...
+   FATAL: invalid value for parameter "lc_messages": "en_US"
+
+   initdb: failed
+   initdb: removing data directory "/usr/share/postgresql/data"
+
 The long version is the rest of this document.

 -------------------------------------------------------------------------------


pgsql-patches by date:

Previous
From: jari.aalto@poboxes.com (Jari Aalto)
Date:
Subject: [patch] 7.4 initdb - drop trailing slash from $PGDATA
Next
From: Patrick Samson
Date:
Subject: pltcl - cannot create 'normal' interpreter - Tcl_CreateSlave() fails - A solution