Re: SQL/MED - core functionality - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: SQL/MED - core functionality
Date
Msg-id 1292332532.18176.6.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: SQL/MED - core functionality  (Shigeru HANADA <hanada@metrosystems.co.jp>)
List 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.




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: hstores in pl/python
Next
From: Robert Haas
Date:
Subject: Re: CommitFest wrap-up