Re: SQL/MED - core functionality
Peter Eisentraut <peter_e@gmx.net>
From: Peter Eisentraut <peter_e@gmx.net>
To: Shigeru HANADA <hanada@metrosystems.co.jp>
Cc: Hitoshi Harada <umi.tanuki@gmail.com>, pgsql-hackers@postgresql.org
Date: 2010-12-14T13:15:32Z
Lists: pgsql-hackers
On mån, 2010-12-13 at 14:45 +0900, Shigeru HANADA wrote: > Simple FDWs such as File FDW might not have concept of "user" on > remote side. In such case, it would be enough to control access > privilege per local user with GRANT/REVOKE SELECT statement. Right. But it depends on the implementation. You could, for example, imagine a "userdir" FDW that reads from users' home directories. > To allow omitting column definitions for that purpose, a way to create > ero-column tables would have to be provided. New syntax which allows > FDWs to determine column definition would be necessary. > > ex) > -- Create foo from the remote table foo on the server bar > CREATE FOREIGN TABLE foo SERVER bar; > -- Create zero-column table foo > CREATE FOREIGN TABLE foo () SERVER bar; That syntax seems pretty obvious.