Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U35HJ-0001WP-AN for pgsql-sql@arkaria.postgresql.org; Wed, 06 Feb 2013 13:43:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U35HI-00070J-RN for pgsql-sql@arkaria.postgresql.org; Wed, 06 Feb 2013 13:43:08 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U35HI-000708-5T; Wed, 06 Feb 2013 13:43:08 +0000 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U35HF-0004A4-R9; Wed, 06 Feb 2013 13:43:07 +0000 Received: from mfilter26-d.gandi.net (mfilter26-d.gandi.net [217.70.178.154]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 213A9A80FA; Wed, 6 Feb 2013 14:42:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter26-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter26-d.gandi.net (mfilter26-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id CN6ZTdKRNZpU; Wed, 6 Feb 2013 14:42:52 +0100 (CET) X-Originating-IP: 98.27.58.255 Received: from [192.168.10.146] (cpe-098-027-058-255.nc.res.rr.com [98.27.58.255]) (Authenticated sender: adsend@dunslane.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id F015CA80E6; Wed, 6 Feb 2013 14:42:51 +0100 (CET) Message-ID: <51125DDA.4060702@dunslane.net> Date: Wed, 06 Feb 2013 08:42:50 -0500 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Dev Kumkar CC: pgsql-sql@postgresql.org, pgsql-admin@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Facing authentication error on postgres 9.2 -> dblink functions References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org On 02/06/2013 08:09 AM, Dev Kumkar wrote: > Hello Everyone, > > I am using postgres 9.2 and when executing function dblink facing a > fatal error while trying to execute dblink_connect as follows: > > /SELECT * FROM dblink_connect('host=127.0.0.1 port=5432 > dbname=postgres password=test')/ > > *ERROR*: could not establish connection DETAIL: FATAL: password > authentication failed for user "NETWORK SERVICE" > > What this error is related to? Do I need to modify pg_hba.conf file by > any chance? > > Thanks.. > Do NOT send questions to multiple lists. That is a waste of everybody's time. So do NOT follow up this email. This question belongs on pgsql-general. If you have further questions pleease ask there. The short answer is that you need to provide the user name in your connect string. cheers andrew -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql