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

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Dev Kumkar *EXTERN*" <devdas(dot)kumkar(at)gmail(dot)com>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [ADMIN] Facing authentication error on postgres 9.2 -> dblink functions
Date: 2013-02-06 13:30:58
Message-ID: A737B7A37273E048B164557ADEF4A58B057B0386@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers pgsql-sql

Dev Kumkar wrote:
> 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?

You should specify a user=username option in the connection string,
otherwise that defaults to your operating system user name.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Andrew Dunstan 2013-02-06 13:42:50 Re: [HACKERS] Facing authentication error on postgres 9.2 -> dblink functions
Previous Message Dev Kumkar 2013-02-06 13:09:16 Facing authentication error on postgres 9.2 -> dblink functions

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2013-02-06 13:42:50 Re: [HACKERS] Facing authentication error on postgres 9.2 -> dblink functions
Previous Message Alvaro Herrera 2013-02-06 13:27:37 Re: sql_drop Event Trigger

Browse pgsql-sql by date

  From Date Subject
Next Message Andrew Dunstan 2013-02-06 13:42:50 Re: [HACKERS] Facing authentication error on postgres 9.2 -> dblink functions
Previous Message Dev Kumkar 2013-02-06 13:09:16 Facing authentication error on postgres 9.2 -> dblink functions