Re: dblink_connect fails

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: dblink_connect fails
Дата
Msg-id 5670E801.9020208@joeconway.com
обсуждение исходный текст
Ответ на dblink_connect fails  (James Sewell <james.sewell@lisasoft.com>)
Ответы Re: dblink_connect fails  (James Sewell <james.sewell@lisasoft.com>)
Список pgsql-general
On 12/15/2015 06:24 PM, James Sewell wrote:
> I have a Windows PostgreSQL server where dblink_connect fails to pick up
> the current user as follows:

>     ffm=# SELECT dblink_connect('master', 'dbname=ffm');
>     ERROR:  could not establish connection
>     DETAIL:  FATAL:  role "PRDSWIDEGRID01$" does not exist

> Has anyone seen this before? It seems very odd to me, I have another
> identical machine (except for being on 9.4.0) which this works on.


Do you happen to have a PGUSER variable defined in your environment
(that is, in the environment as seen by the OS user the postmaster runs
under)?

See: http://www.postgresql.org/docs/9.4/static/libpq-envars.html

Joe

--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development


Вложения

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

Предыдущее
От: George Neuner
Дата:
Сообщение: Re: Permissions, "soft read failure" - wishful thinking?
Следующее
От: Dmitry Savenko
Дата:
Сообщение: Re: How to get the size of JSONB in bytes?