Hey all,
I have a Windows PostgreSQL server where dblink_connect fails to pick up the current user as follows:
#psql -h localhost -U postgres ffm
-------------------------------------------------------------
PostgreSQL 9.4.5, compiled by Visual C++ build 1800, 64-bit
ffm=# SELECT dblink_connect('master', 'dbname=ffm');
ERROR: could not establish connection
DETAIL: FATAL: role "PRDSWIDEGRID01$" does not exist
ffm=# select session_user;
ffm=# SELECT dblink_connect('master', 'dbname=ffm user=postgres');
dblink_connect
----------------
OK
(1 row)
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.
Cheers,
James Sewell,
Solutions Architect
______________________________________

Level 2, 50 Queen St, Melbourne VIC 3000P (+61) 3 8370 8000 W www.lisasoft.com F (+61) 3 8370 8099
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.