Hello
It is possible to execute "CREATE FOREIGN TABLE" and
"INSERT INTO FDW_TABLE SELECT * .." by dbowner (non-SuperUser)?
1, CREATE FOREIGN TABLE
I executed "create foreign table" by database owner.
I got following error.
CREATE FOREIGN TABLE test_fdw
(
product_category TEXT,
product_subcategory TEXT,
similar_product_ids CHAR(10)[]
)
SERVER cstore_server
OPTIONS(compression 'pglz');
ERROR: permission denied for foreign server cstore_server
2, INSERT INTO FDW_TABLE
And also when I execute "INSERT INTO" by database owner.
I got following error.
insert into test_fdw select * from test_normal;
ERROR: permission denied for relation test_normal
When I execute those command by SuperUser, Both command worked properly.
Environment
OSX: 10.11.1
PostgreSQL 9.4.5
cstore_fdw: 1.3
--
Hiroyuki Sato.