Skip to content
Snippets Groups Projects
Commit 8aea1373 authored by Heikki Linnakangas's avatar Heikki Linnakangas
Browse files

Don't require usage privileges on the foreign data wrapper when creating a

foreign table. We check for usage privileges on the foreign server, that ought
to be enough.

Shigeru HANADA
parent 8ceb2456
No related branches found
No related tags found
No related merge requests found
...@@ -1203,10 +1203,6 @@ CreateForeignTable(CreateForeignTableStmt *stmt, Oid relid) ...@@ -1203,10 +1203,6 @@ CreateForeignTable(CreateForeignTableStmt *stmt, Oid relid)
fdw = GetForeignDataWrapper(server->fdwid); fdw = GetForeignDataWrapper(server->fdwid);
aclresult = pg_foreign_data_wrapper_aclcheck(fdw->fdwid, ownerId, ACL_USAGE);
if (aclresult != ACLCHECK_OK)
aclcheck_error(aclresult, ACL_KIND_FDW, fdw->fdwname);
/* /*
* Insert tuple into pg_foreign_table. * Insert tuple into pg_foreign_table.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment