X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 7CAC69DC802 for ; Wed, 4 Jan 2006 19:55:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28589-06 for ; Wed, 4 Jan 2006 19:55:19 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 5F7CD9DCA83 for ; Wed, 4 Jan 2006 19:55:14 -0400 (AST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.70]) by svr4.postgresql.org (Postfix) with ESMTP id E35DE5AF02D for ; Wed, 4 Jan 2006 23:55:17 +0000 (GMT) Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (Xserve/8.12.11/smtpout13/MantshX 4.0) with ESMTP id k04NtGGm025694 for ; Wed, 4 Jan 2006 15:55:16 -0800 (PST) Received: from [192.168.168.4] (pcp0010156577pcs.midltn01.nj.comcast.net [68.38.153.64]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 4.0) with ESMTP id k04NtCmP011050 for ; Wed, 4 Jan 2006 15:55:15 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v746.2) Content-Transfer-Encoding: 7bit Message-Id: <43F20F23-3BA8-4894-A6DD-6351300939B6@mac.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: pgsql-admin@postgresql.org From: Richard Doust Subject: New install - can't access pgsql Date: Wed, 4 Jan 2006 18:55:11 -0500 X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200601/59 X-Sequence-Number: 20147 I have just done a new compile and install of postgresql 8.1.0 on a Mac running OS X 10.4.3 Server. This machine hosted a postgres database in a production web application environment until recently when I moved the application and the database to a different host on the network. My intent is to use the old host as a development platform. After moving the database to the new host (no problems, compiled and installed 8.1.0 on a Mac running OS X 10.4.3 client, backed up and restored the database), I found that I couldn't access postgres on the old host any longer. When I tried, logged in as postgres, the dbms user who had always in the past been able to, I got this error: psql: FATAL: No pg_hba.conf entry for host localhost, user postgres, database postgres I had been running 8.0.1 or some such, so I decided to compile 8.1.0 on the old host and deploy it and try again. Before running make install, I deleted /usr/local/pgsql and all of its subdirectories as root. Then I ran make install. I then ran ititdb successfully, then try to create a database using createdb and get the same error: psql: FATAL: No pg_hba.conf entry for host localhost, user postgres, database postgres Of course, the pg_hba.conf file is in the $PGDATA directory, and does specify the defaults, which should allow postgres to access the postgres database on localhost. Is it perhaps looking elsewhere for pg_hba.conf? If so, how can I find out? I'm sure this must be incredibly easy, but it's annoying me at this point? Thanks for any help.