Re: dblink_connect fails - Mailing list pgsql-general

From Joe Conway
Subject Re: dblink_connect fails
Date
Msg-id 5670E801.9020208@joeconway.com
Whole thread Raw
In response to dblink_connect fails  (James Sewell <james.sewell@lisasoft.com>)
Responses Re: dblink_connect fails  (James Sewell <james.sewell@lisasoft.com>)
List 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


Attachment

pgsql-general by date:

Previous
From: George Neuner
Date:
Subject: Re: Permissions, "soft read failure" - wishful thinking?
Next
From: Dmitry Savenko
Date:
Subject: Re: How to get the size of JSONB in bytes?