From: Tom Lane Date: Wed, 5 May 2004 16:09:56 +0000 (+0000) Subject: Unset PGCLIENTENCODING to prevent backend from dying if it's set X-Git-Tag: REL7_4_3~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31cf0d6bacc3ae4103966a7ba47ed429b19364d9;p=postgresql Unset PGCLIENTENCODING to prevent backend from dying if it's set to something incompatible with the -E option. --- diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh index 07ff82ec93..e664ba3ede 100644 --- a/src/bin/initdb/initdb.sh +++ b/src/bin/initdb/initdb.sh @@ -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