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

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: [ADMIN] Facing authentication error on postgres 9.2 -> dblink functions
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B057B0386@ntex2010a.host.magwien.gv.at
обсуждение исходный текст
Ответ на Facing authentication error on postgres 9.2 -> dblink functions  (Dev Kumkar <devdas.kumkar@gmail.com>)
Список 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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Dev Kumkar
Дата:
Сообщение: Facing authentication error on postgres 9.2 -> dblink functions
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [HACKERS] Facing authentication error on postgres 9.2 -> dblink functions