BUG #7818: Foreign server not visible under normal users

Started by Nonameabout 13 years ago2 messagesbugs
Jump to latest
#1Noname
abrosich@ogs.trieste.it

The following bug has been logged on the website:

Bug reference: 7818
Logged by: Alberto Brosich
Email address: abrosich@ogs.trieste.it
PostgreSQL version: 9.2.2
Operating system: Debian GNU/Linux 7.0
Description:

I installed oracle_fdw (version 0.9.8).
Under "postgres" user works all fine and I can create tables and select from
them.
Despite the fact that I granted usage to a normal user (as specified in the
documentation, with the command "GRANT USAGE ON FOREIGN SERVER server TO
pguser;")
, that user cannot see the server: \des gives an empty list and every
command about foreign server gives an error (for example CREATE USER
MAPPING...).
Postgresql is installed from PGDG apt repository.

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Noname (#1)
Re: BUG #7818: Foreign server not visible under normal users

abrosich@ogs.trieste.it writes:

I installed oracle_fdw (version 0.9.8).
Under "postgres" user works all fine and I can create tables and select from
them.
Despite the fact that I granted usage to a normal user (as specified in the
documentation, with the command "GRANT USAGE ON FOREIGN SERVER server TO
pguser;")
, that user cannot see the server: \des gives an empty list and every
command about foreign server gives an error (for example CREATE USER
MAPPING...).

There is no permission-related filter in \des output. What seems most
likely is that your "normal user" isn't connected to the same database
that you created the FDW and foreign server in.

regards, tom lane

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs