This is about SELECT * FROM firebird_version(); command.
There is
SELECT fs.oid, fs.srvname, um.umuser
FROM pg_foreign_data_wrapper fdw
INNER JOIN pg_catalog.pg_foreign_server fs
ON fs.srvfdw = fdw.oid
INNER JOIN pg_catalog.pg_user_mapping um
ON um.umserver=fs.oid
WHERE fdw.fdwname = 'firebird_fdw'
query in algorithm of firebird_version function.
By default pg_catalog.pg_user_mapping isn't accessible for a users without superuser's rights. Non privileged user get ERROR: no access to pg_user_mapping table.
Steps to reproduce:
Make user without superuser's rights in Pg13.
Make DB for this user as owner.
From superuser. Create in the new DB of new user firebird_fdwextension and foreign server and user mapping for the user with the server.
This is about
SELECT * FROM firebird_version();
command. There isquery in algorithm of
firebird_version
function. By defaultpg_catalog.pg_user_mapping
isn't accessible for a users without superuser's rights. Non privileged user getERROR: no access to pg_user_mapping table
.Steps to reproduce:
firebird_fdw
extension and foreign server and user mapping for the user with the server.SELECT * FROM firebird_version();
.