Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f48FW4A20051 for ; Tue, 8 May 2001 11:32:04 -0400 (EDT) (envelope-from olly@lfix.co.uk) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-31.mail.demon.net with esmtp (Exim 2.12 #1) id 14x9Sw-000Hp7-0V; Tue, 8 May 2001 16:31:58 +0100 Received: from lfix.co.uk (olly@localhost [127.0.0.1]) by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f48FVviW012434; Tue, 8 May 2001 16:31:57 +0100 Message-Id: <200105081531.f48FVviW012434@linda.lfix.co.uk> X-Mailer: exmh version 2.3.1 01/18/2001 (debian 2.3.1-1) with nmh-1.0.4+dev X-URL: http://www.lfix.co.uk/oliver X-face: "xUFVDj+ZJtL_IbURmI}!~xAyPC"Mrk=MkAm&tPQnNq(FWxv49R}\>0oI8VM?O2VY+N7@F- KMLl*!h}B)u@TW|B}6 cc: pgsql-admin@postgresql.org Subject: Re: PGACCESS: error trying to connect... In-reply-to: Message from Tim Boring of Tue, 08 May 2001 10:09:08 EDT. <01050810214300.28213@tim> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 08 May 2001 16:31:57 +0100 From: "Oliver Elphick" X-Archive-Number: 200105/33 X-Sequence-Number: 1373 Tim Boring wrote: >I've successfully installed pgsql 7.0.3 on my SuSE 7.0 system and can create >dbs, users, etc. from the psql terminal. However, if I want to try to use >pgaccess it gives me the following error message: > >"Connection to database failed PQconnectPoll() -- connect() failed: >Connection refused. Is the postmaster running (with -i) at 'localhost' and >accepting connections on TCP/IP port 5432'?" > >So I shutdown the postmaster and tried restarting like this: >postmaster -D -i /var/lib/pgsql/data > logfile 2>&1 & > >but it doesn't start the postmaster. If I leave off the -i it will start, b >ut >then I'm back to square one as far as using pgaccess. > >Out of curiousity, since I'm trying to use pgaccess on the localhost, should >n't >it just use regular Linux sockets and not try to connect via TCP/IP? It see >ms >odd that I can connect to the server from the psql terminal without setting >the >-i option on the postmaster but not from pgaccess. Leave the hostname field blank in the connection dialog; pgaccess will then use Unix sockets instead of TCP/IP. localhost is a TCP/IP hostname. This is not specific to pgaccess; if PGHOST is in your environment and not empty, any connection to the postmaster will use TCP/IP unless overridden. -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47 GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "Follow peace with all men, and holiness, without which no man shall see the Lord." Hebrews 12:14