Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D12A96325C9 for ; Thu, 22 Jan 2009 04:23:30 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 96691-05 for ; Thu, 22 Jan 2009 04:23:24 -0400 (AST) X-Greylist: delayed 00:20:21.509347 by SQLgrey-1.7.6 Received: from hoadms003.cpttm.org.mo (z94l91.static.ctm.net [202.175.94.91]) by mail.postgresql.org (Postfix) with ESMTP id E5BDC6325CB for ; Thu, 22 Jan 2009 04:23:23 -0400 (AST) Received: from hoadms003.cpttm.org.mo (localhost [127.0.0.1]) by hoadms003.cpttm.org.mo (Postfix) with ESMTP id D21CA7DE96 for ; Thu, 22 Jan 2009 16:02:31 +0800 (CST) DomainKey-Signature: a=rsa-sha1; h=Received:Message-ID:Date:From:Organization:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=ZD1Z+X2Z92Vfa6Bg2ayTZ3/R1gYTxdMXr4bdau1XFwoXeJ9lC3NOft18tgeJaodY3S4ss5mMhe+dlKdTy+Hll/ex0JYgOLUurIJkM0XrkMarfyFNb/3nSfQiUI6sfW3F/riiLZO0c8rWpCWgzfyYYvVa5nkndh8W9r1dx0EzG6w=; c=nofws; d=cpttm.org.mo; q=dns; s=cpttm Received: from [172.18.17.232] (unknown [172.18.17.232]) by hoadms003.cpttm.org.mo (Postfix) with ESMTP id 742E77DD34 for ; Thu, 22 Jan 2009 16:02:31 +0800 (CST) Message-ID: <49782810.9050309@cpttm.org.mo> Date: Thu, 22 Jan 2009 16:02:24 +0800 From: Kent Tong Organization: CPTTM User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: error reading c:\Program Files\PostgreSQL\8.3\data\postgresql.conf during installation Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200901/133 X-Sequence-Number: 22115 Package: One click installer of PostgreSQL 8.3 Env: Windows XP SP2 (Traditional Chinese) What's wrong: It says error reading c:\Program Files\PostgreSQL\8.3\data\postgresql.conf during installation. That data directory is empty. Obviously, you can't start the server later. Fix: This error is caused by the failure of initdb in creating a DB. It fails probably due to the locale. To fix the problem: runas /user:postgres cmd c: cd "\Program Files\PostgreSQL\8.3\bin" initdb -D "c:\Program Files\PostgreSQL\8.3\data" -E UTF8 --locale=English It is very important that you specify the encoding and the locale. Otherwise it will fail and report that the locale is invalid. -- Kent Tong SME accounting software package for just MOP30. See http://www.cpttm.org.mo/index_c.php?pg=cpttm/department/is/ispu/accsys/index.htm for more.