Unset PGCLIENTENCODING to prevent backend from dying if it's set
authorTom Lane <[email protected]>
Wed, 5 May 2004 16:09:56 +0000 (16:09 +0000)
committerTom Lane <[email protected]>
Wed, 5 May 2004 16:09:56 +0000 (16:09 +0000)
to something incompatible with the -E option.

src/bin/initdb/initdb.sh

index 72b7f95e0677c9fa9fcb8e8604e646bc05ff4760..e9a8628593ea8208a14945b5d3f06d1487e9f627 100644 (file)
@@ -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