logo       

Re: connection refused problem: msg#01084

Subject: Re: connection refused problem
Modify the pg_ctl script and it should run the postmaster.
What you do is add the -i flag there. Alternatively you can add
to pg_hba.conf file i think it is TCP = yes. I am not sure but you can
check the documentation about that one but the -i flag on postmaster
definately works

HTH

Darren Ferguson

On Thu, 30 May 2002, Phil Glatz wrote:

> I bringing up PostgreSQL 7.1.3 on a Free BSD 4.5 system, installed from 
> ports, using defaults.  I copied the sample versions of pg_hba.conf and 
> postgresql.conf to new files, removing the .sample part.
> 
> This command works fine:
> psql -U pgsql database
> 
> but if I specify a hostname:
> psql -U pgsql -h localhost cn
> 
> I get:
>    psql: connectDBStart() -- connect() failed: Connection refused
>            Is the postmaster running (with -i) at 'localhost'
>            and accepting connections on TCP/IP port 5432?
> 
> 
> I have local hosts defined in /etc/hosts, and in /tmp I see:
> srwxrwxrwx   1 pgsql  wheel     0 May 30 10:15 .s.PGSQL.5432=
> -rw-------   1 pgsql  wheel    28 May 30 10:15 .s.PGSQL.5432.lock
> 
> 
> Sorry for such an obviously dumb question, I didn't see anything in the FAQ 
> other than "add the -i flag to postmaster", but I didn't see how to do 
> that.  The core line in my startup script is:
> 
>    '[ -d ${PGDATA} ] && exec /usr/local/bin/pg_ctl start -s -w -l 
> ~pgsql/errlog'
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
> http://www.postgresql.org/users-lounge/docs/faq.html
> 


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe