Re: pgAdmin and Postgres_fdw needing superuser access - Mailing list pgadmin-support

From Adam Pearson
Subject Re: pgAdmin and Postgres_fdw needing superuser access
Date
Msg-id A09FF13F31F4184D8DDD607B8197B98C3C36905F@dcm1-exm-002.ofg.local
Whole thread Raw
In response to pgAdmin and Postgres_fdw needing superuser access  (Adam Pearson <Adam.Pearson@4finance.com>)
Responses Re: pgAdmin and Postgres_fdw needing superuser access  (Per Wigren <per.wigren@gmail.com>)
List pgadmin-support

Resolved myself, don’t panic Mr Mannering.

 

From: Adam Pearson
Sent: 03 December 2015 11:16 AM
To: 'pgAdmin Support'
Subject: pgAdmin and Postgres_fdw needing superuser access

 

Hello All,

                Has anyone encountered a quirk with PGAdmin and Postgres_fdw requiring superuser access?

 

For example.

 

Run the below under my useraccount, sudo and it returns a record set.

 

select id from foreign_address limit 10;

 

Run the same code in PGAdmin, my normal user account and it reports

 

ERROR:  password is required

DETAIL:  Non-superuser cannot connect if the server does not request a password.

HINT:  Target server's authentication method must be changed.

********** Error **********

 

ERROR: password is required

SQL state: 2F003

Detail: Non-superuser cannot connect if the server does not request a password.

Hint: Target server's authentication method must be changed.

 

However, if I just run a normal select on a non-foreign table it works.

 

Also, if I change my account to be a superuser it works.  Confuses me slightly, since when setting up Postgres_fdw you specify the connection details in the user mapping. 

 

Is this a problem with pgAdmin, or Postgres_fdw?  Seems to indicate an issue with pgAdmin?

 

Thanks & Regards,

Adam Pearson

pgadmin-support by date:

Previous
From: Adam Pearson
Date:
Subject: pgAdmin and Postgres_fdw needing superuser access
Next
From: Per Wigren
Date:
Subject: Re: pgAdmin and Postgres_fdw needing superuser access