From: Tom Lane <tgl@sss.pgh.pa.us>
To: Manish Gupta <ml_gupta@hotmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: dblink not working in FC5
Date: Wed, 19 Apr 2006 19:35:44 -0400
Message-ID: <5135.1145489744@sss.pgh.pa.us> (raw)
In-Reply-To: <BAY101-F20347F9334FB161EA10279E6C50@phx.gbl>
References: <BAY101-F20347F9334FB161EA10279E6C50@phx.gbl>
"Manish Gupta" <ml_gupta@hotmail.com> writes:
> bulbulbo=# select dblink_connect('hostaddr=127.0.0.1 dbname=bulbulfo
> user=bulbul password=password');
> ERROR: could not establish connection
> DETAIL: could not connect to server: Permission denied
> Is the server running on host "127.0.0.1" and accepting
> TCP/IP connections on port 5432?
"Permission denied" seems a bit odd here. Just as a wild guess: do you
have SELinux running in enforcement mode, and if so, does switching it
to permissive mode make this work? (See /usr/sbin/getenforce and
setenforce) Another thing to try is a non-TCP connection, ie, leave out
the hostaddr bit.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, ml_gupta@hotmail.com
Subject: Re: dblink not working in FC5
In-Reply-To: <5135.1145489744@sss.pgh.pa.us>
References: <BAY101-F20347F9334FB161EA10279E6C50@phx.gbl> <5135.1145489744@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox