Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id A40B72E0041 for ; Tue, 29 Apr 2008 11:45:43 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 33651-08 for ; Tue, 29 Apr 2008 11:45:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by developer.postgresql.org (Postfix) with ESMTP id 02A932E0033 for ; Tue, 29 Apr 2008 11:45:34 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m3TEjU6N001319; Tue, 29 Apr 2008 10:45:30 -0400 (EDT) To: Carol Walter cc: pgsql-admin@postgresql.org Subject: Re: Error on pg_dumpall In-reply-to: <88728013-4F8D-4A5D-AE5F-8DB2B73D6D7A@indiana.edu> References: <88728013-4F8D-4A5D-AE5F-8DB2B73D6D7A@indiana.edu> Comments: In-reply-to Carol Walter message dated "Tue, 29 Apr 2008 09:59:40 -0400" Date: Tue, 29 Apr 2008 10:45:30 -0400 Message-ID: <1318.1209480330@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/280 X-Sequence-Number: 29044 Carol Walter writes: > I'm having a problem that I hope you can help me with. I am getting > the following error when I try to run pg_dumpall. > postgres@machine1:~$ /usr/local/pgsql/bin/pg_dumpall > pg_dumpall: could not connect to database "template1": could not > connect to server: No such file or directory > Is the server running locally and accepting > connections on Unix domain socket "/tmp/.s.PGSQL.5432"? > If I run the command "psql template1", I can connect to template1 > just fine. Does "which psql" say that you're using the psql in /usr/local/pgsql/bin? It sounds to me a bit like you have two sets of PG programs with different default port numbers compiled into them. Which port is the server actually listening on? > This is a new installation of postgresql 8.3 on a Debian Linux > machine. Debian is a rather nasty environment for custom-built PG installations, because they have their own ideas of where to put the PG programs and what port numbers they should run on. I'm thinking you are connecting to a Debian-supplied postmaster on a non-standard port, and not to your own installation at all. regards, tom lane