Thread: [patch] Postgres 7.4 - doc INSTALL/Cygwin

[patch] Postgres 7.4 - doc INSTALL/Cygwin

From
jari.aalto@poboxes.com (Jari Aalto)
Date:

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.

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


Re: [patch] Postgres 7.4 - doc INSTALL/Cygwin

From
Peter Eisentraut
Date:
Jari Aalto wrote:
> Here is small patch to help people reading the documentation
> under Cygwin.

What about those not running under Cygwin?