X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx2.hub.org [200.46.204.254]) by postgresql.org (Postfix) with ESMTP id EC28511F6ACD for ; Wed, 19 Apr 2006 20:35:53 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: -2.349 X-Spam-Level: X-Spam-Status: No, score=-2.349 required=5 tests=[AWL=0.252, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] Received: from postgresql.org ([200.46.204.71]) by localhost (mx2.hub.org [200.46.204.254]) (amavisd-new, port 10024) with ESMTP id yUqPTTaXIBg6 for ; Wed, 19 Apr 2006 20:35:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 3754511F671C for ; Wed, 19 Apr 2006 20:35:45 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k3JNZiF0005136; Wed, 19 Apr 2006 19:35:44 -0400 (EDT) To: "Manish Gupta" cc: pgsql-admin@postgresql.org Subject: Re: dblink not working in FC5 In-reply-to: References: Comments: In-reply-to "Manish Gupta" message dated "Wed, 19 Apr 2006 18:26:48 -0400" Date: Wed, 19 Apr 2006 19:35:44 -0400 Message-ID: <5135.1145489744@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200604/191 X-Sequence-Number: 21360 "Manish Gupta" 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