]> granicus.if.org Git - postgresql/commitdiff
Unset PGCLIENTENCODING to prevent backend from dying if it's set
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 5 May 2004 16:09:56 +0000 (16:09 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 5 May 2004 16:09:56 +0000 (16:09 +0000)
to something incompatible with the -E option.

src/bin/initdb/initdb.sh

index 07ff82ec93633ac4c6b6b08e3bb60ab00dea4e48..e664ba3edec3bb7237ec5b8bad9a2d995358ec29 100644 (file)
@@ -27,7 +27,7 @@
 # Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
 # Portions Copyright (c) 1994, Regents of the University of California
 #
-# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.204.2.2 2004/04/29 19:56:35 tgl Exp $
+# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.204.2.3 2004/05/05 16:09:56 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -622,6 +622,8 @@ then
     BOOTSTRAP_TALK_ARG="-d 5"
 fi
 
+unset PGCLIENTENCODING
+
 $ECHO_N "creating template1 database in $PGDATA/base/1... "$ECHO_C
 
 rm -rf "$PGDATA"/base/1 || exit_nicely