Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id ACEBD9FC0EA for ; Thu, 18 Oct 2007 13:25:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 03209-02 for ; Thu, 18 Oct 2007 13:25:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id F027B9FC076 for ; Thu, 18 Oct 2007 13:25:40 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-220-127-162.bk10-dsl.surnet.cl [201.220.127.162]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l9IGPewG019013; Thu, 18 Oct 2007 09:25:41 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 174EB47C7A; Thu, 18 Oct 2007 13:25:37 -0300 (CLST) Date: Thu, 18 Oct 2007 13:25:37 -0300 From: Alvaro Herrera To: Sylvain Brohee Cc: pgsql-admin@postgresql.org Subject: Re: could not open file "global/pg_database" Message-ID: <20071018162537.GF29379@alvh.no-ip.org> References: <200710181456.03192.sylvain@scmbb.ulb.ac.be> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200710181456.03192.sylvain@scmbb.ulb.ac.be> User-Agent: Mutt/1.5.16 (2007-06-11) X-Virus-Scanned: ClamAV 0.91.1/4545/Wed Oct 17 14:05:57 2007 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Thu, 18 Oct 2007 09:25:41 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/175 X-Sequence-Number: 27089 Sylvain Brohee wrote: > If I try create a database > > createdb testdb > > createdb: could not connect to database postgres: FATAL:  could not open > file "global/pg_database": No such file or directory That's pretty strange. Is there a global/pg_database file in $PGDATA? Who's the owner? -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support