From 8aea1373d8f88bf389def1af10d06f1e67e25249 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Fri, 21 Jan 2011 15:04:05 +0200 Subject: [PATCH] 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 --- src/backend/commands/foreigncmds.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/backend/commands/foreigncmds.c b/src/backend/commands/foreigncmds.c index 2774fc52ba..3a0ea9a632 100644 --- a/src/backend/commands/foreigncmds.c +++ b/src/backend/commands/foreigncmds.c @@ -1203,10 +1203,6 @@ CreateForeignTable(CreateForeignTableStmt *stmt, Oid relid) 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. */ -- 2.40.0