]> granicus.if.org Git - postgresql/commitdiff
Don't require usage privileges on the foreign data wrapper when creating a
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 21 Jan 2011 13:04:05 +0000 (15:04 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 21 Jan 2011 13:05:20 +0000 (15:05 +0200)
foreign table. We check for usage privileges on the foreign server, that ought
to be enough.

Shigeru HANADA

src/backend/commands/foreigncmds.c

index 2774fc52ba427f0ec8690932d510b07f089dffe7..3a0ea9a632395544f0714976b9441d9815c06301 100644 (file)
@@ -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.
         */