[patch] Postgres 7.4 - doc INSTALL/Cygwin

Started by Jari Aaltoover 22 years ago2 messagespatches
Jump to latest
#1Jari Aalto
jari.aalto@poboxes.com

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.

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

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Jari Aalto (#1)
Re: [patch] Postgres 7.4 - doc INSTALL/Cygwin

Jari Aalto wrote:

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

What about those not running under Cygwin?