Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8aea137

Browse files
committed
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
1 parent 8ceb245 commit 8aea137

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/backend/commands/foreigncmds.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,10 +1203,6 @@ CreateForeignTable(CreateForeignTableStmt *stmt, Oid relid)
12031203

12041204
fdw = GetForeignDataWrapper(server->fdwid);
12051205

1206-
aclresult = pg_foreign_data_wrapper_aclcheck(fdw->fdwid, ownerId, ACL_USAGE);
1207-
if (aclresult != ACLCHECK_OK)
1208-
aclcheck_error(aclresult, ACL_KIND_FDW, fdw->fdwname);
1209-
12101206
/*
12111207
* Insert tuple into pg_foreign_table.
12121208
*/

0 commit comments

Comments
 (0)