Re: pgsql_fdw, FDW for PostgreSQL server
Shigeru Hanada <shigeru.hanada@gmail.com>
From: Shigeru HANADA <shigeru.hanada@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Albe Laurenz <laurenz.albe@wien.gv.at>, Kevin Grittner <Kevin.Grittner@wicourts.gov>, Robert Haas <robertmhaas@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>, Kohei KaiGai <kaigai@kaigai.gr.jp>, Martijn van Oosterhout <kleptog@svana.org>, Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>, Hitoshi Harada <umi.tanuki@gmail.com>
Date: 2012-04-07T01:32:33Z
Lists: pgsql-hackers
Attachments
- pgsql_fdw_v20.patch (text/plain) patch v20
- pgsql_fdw_pushdown_v13.patch (text/plain) patch v13
- pgsql_fdw_analyze_v2.patch (text/plain) patch v2
(2012/04/07 1:38), Tom Lane wrote: > Shigeru Hanada<shigeru.hanada@gmail.com> writes: >> On Fri, Apr 6, 2012 at 11:20 PM, Tom Lane<tgl@sss.pgh.pa.us> wrote: >>> In >>> particular I do not like the specific way it's done in the v7 patch >>> (I've not looked at v8 yet) because the interposed logic has a >>> hard-wired assumption that foreign tables do not have inheritance >>> children. I think that assumption has a life expectancy measured in >>> months at most, and I don't want to have to try to fix every FDW when >>> it changes. But I think we can easily revise the hook details to fix >>> that, and I'm hoping to get that done today. > >> I'll try implementing the design you suggested. > > I've already got it fixed up ... I've updated pgsql_fdw so that it can collect statistics from foreign data with new FDW API. Other changes from latest version are: - Now pgsql_fdw uses libpq row processor API to get rid of SQL-level cursor. - Introduced new struct ErrorPos to integrate error reporting in foreign scan and analyze. - Some refactoring, such as removing unnecessary parameter. - Fix typos. Regards, -- Shigeru HANADA