mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Don't require a user mapping for FDWs to work.
Commit fbe5a3fb73
accidentally changed
this behavior; put things back the way they were, and add some
regression tests.
Report by Andres Freund; patch by Ashutosh Bapat, with a bit of
kibitzing by me.
This commit is contained in:
@ -173,6 +173,9 @@ SET ROLE file_fdw_user;
|
||||
\t on
|
||||
EXPLAIN (VERBOSE, COSTS FALSE) SELECT * FROM agg_text WHERE a > 0;
|
||||
\t off
|
||||
-- file FDW allows foreign tables to be accessed without user mapping
|
||||
DROP USER MAPPING FOR file_fdw_user SERVER file_server;
|
||||
SELECT * FROM agg_text ORDER BY a;
|
||||
|
||||
-- privilege tests for object
|
||||
SET ROLE file_fdw_superuser;
|
||||
|
Reference in New Issue
Block a user