SQL/MED - FDW API

Started by Shigeru HANADAalmost 15 years ago4 messages
#1Shigeru HANADA
hanada@metrosystems.co.jp
3 attachment(s)

Attached are WIP version of patches for FDW API. Basically not
changed from last version but rebased to current HEAD.

To make review easier, I split core functionality into 3 patches.
Please apply these patches in the following order.

1) fdw_handler - this patch adds HANDLER option to both syntax and
catalog of FOREIGN DATA WRAPPER.

2) foreign_scan - this patch adds following: ForeignScan executor-node,
hooks in planner and executor, and FdwRoutine (FDW API).

3) catalog_lookup - this patch adds GetForeignTable() whicch returns
ForeignTable object, similar to GetForeignDataWrapper(),
GetForeignServer(), and GetUserMapping(). This function is assumed to
be used by FDWs.

You would be able to test these patches with file_fdw wrapper which
would be posted in another thread.

Regards,
--
Shigeru Hanada

Attachments:

fdw_handler.patch.gzapplication/octet-stream; name=fdw_handler.patch.gzDownload
foreign_scan.patch.gzapplication/octet-stream; name=foreign_scan.patch.gzDownload
catalog_lookup.patch.gzapplication/octet-stream; name=catalog_lookup.patch.gzDownload
#2Shigeru HANADA
hanada@metrosystems.co.jp
In reply to: Shigeru HANADA (#1)
3 attachment(s)
Re: SQL/MED - FDW API

Attached are rebased version of patches for FDW API.

To make review easier, I split core functionality into 3 patches.
Please apply these patches in the following order.

1) fdw_handler - this patch adds HANDLER option to both syntax and
catalog of FOREIGN DATA WRAPPER.

2) foreign_scan - this patch adds following: ForeignScan executor-node,
hooks in planner and executor, and FdwRoutine (FDW API).

3) fdw_catalog_lookup - this patch adds GetForeignTable() whicch
returns ForeignTable object, similar to GetForeignDataWrapper(),
GetForeignServer(), and GetUserMapping(). This function is assumed to
be used by FDWs.

You would be able to test these patches with "20110114" version of file_fdw
wrapper patches which will be posted in another thread.

Regards,
--
Shigeru Hanada

Attachments:

20110114-fdw_handler.patch.gzapplication/octet-stream; name=20110114-fdw_handler.patch.gzDownload
20110114-foreign_scan.patch.gzapplication/octet-stream; name=20110114-foreign_scan.patch.gzDownload
20110114-fdw_catalog_lookup.patch.gzapplication/octet-stream; name=20110114-fdw_catalog_lookup.patch.gzDownload
#3Andrew Dunstan
andrew@dunslane.net
In reply to: Shigeru HANADA (#2)
Re: SQL/MED - FDW API

On 01/14/2011 07:23 AM, Shigeru HANADA wrote:

You would be able to test these patches with "20110114" version of file_fdw
wrapper patches which will be posted in another thread.

Have you actually posted this version of file_fdw? I haven't seen it.

cheers

andrew

#4Shigeru HANADA
hanada@metrosystems.co.jp
In reply to: Andrew Dunstan (#3)
Re: SQL/MED - FDW API

On Fri, 14 Jan 2011 14:59:00 -0500
Andrew Dunstan <andrew@dunslane.net> wrote:

Have you actually posted this version of file_fdw? I haven't seen it.

Sorry, now it's been posted.
http://archives.postgresql.org/pgsql-hackers/2011-01/msg01205.php

Regarads,
--
Shigeru Hanada