Re: [HACKERS] Facing authentication error on postgres 9.2 -> dblink functions

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Dev Kumkar <devdas(dot)kumkar(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Facing authentication error on postgres 9.2 -> dblink functions
Date: 2013-02-06 13:42:50
Message-ID: 51125DDA.4060702@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers pgsql-sql


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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Dev Kumkar 2013-02-06 17:55:00 Re: Facing authentication error on postgres 9.2 -> dblink functions
Previous Message Albe Laurenz 2013-02-06 13:30:58 Re: [ADMIN] Facing authentication error on postgres 9.2 -> dblink functions

Browse pgsql-hackers by date

  From Date Subject
Next Message Dimitri Fontaine 2013-02-06 13:44:01 Re: sql_drop Event Trigger
Previous Message Albe Laurenz 2013-02-06 13:30:58 Re: [ADMIN] Facing authentication error on postgres 9.2 -> dblink functions

Browse pgsql-sql by date

  From Date Subject
Next Message Dev Kumkar 2013-02-06 17:55:00 Re: Facing authentication error on postgres 9.2 -> dblink functions
Previous Message Albe Laurenz 2013-02-06 13:30:58 Re: [ADMIN] Facing authentication error on postgres 9.2 -> dblink functions