Re: inherit support for foreign tables
От
Alvaro Herrera
Тема
Re: inherit support for foreign tables
Дата
Msg-id
20150414185218.GX4369@alvh.no-ip.org
Ответ на
Re: inherit support for foreign tables (Jim Nasby)
Список
Дерево обсуждения
inherit support for foreign tables Shigeru Hanada <shigeru.hanada@gmail.com>
Re: inherit support for foreign tables Tom Lane <tgl@sss.pgh.pa.us>
Re: inherit support for foreign tables Robert Haas <robertmhaas@gmail.com>
Re: inherit support for foreign tables Tom Lane <tgl@sss.pgh.pa.us>
Re: inherit support for foreign tables Shigeru Hanada <shigeru.hanada@gmail.com>
Inheritance and indexes knizhnik <knizhnik@garret.ru>
Re: Inheritance and indexes Marti Raudsepp <marti@juffo.org>
Re: inherit support for foreign tables KaiGai Kohei <kaigai@ak.jp.nec.com>
Re: inherit support for foreign tables Shigeru Hanada <shigeru.hanada@gmail.com>
Re: inherit support for foreign tables KaiGai Kohei <kaigai@ak.jp.nec.com>
Re: inherit support for foreign tables Robert Haas <robertmhaas@gmail.com>
Re: inherit support for foreign tables Tom Lane <tgl@sss.pgh.pa.us>
Re: inherit support for foreign tables Robert Haas <robertmhaas@gmail.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables David Fetter <david@fetter.org>
Re: inherit support for foreign tables Atri Sharma <atri.jiit@gmail.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kouhei Kaigai <kaigai@ak.jp.nec.com>
Re: inherit support for foreign tables Atri Sharma <atri.jiit@gmail.com>
Re: inherit support for foreign tables Shigeru Hanada <shigeru.hanada@gmail.com>
Re: inherit support for foreign tables Shigeru Hanada <shigeru.hanada@gmail.com>
Re: inherit support for foreign tables Tom Lane <tgl@sss.pgh.pa.us>
Re: inherit support for foreign tables Robert Haas <robertmhaas@gmail.com>
Re: inherit support for foreign tables Tom Lane <tgl@sss.pgh.pa.us>
Re: inherit support for foreign tables Robert Haas <robertmhaas@gmail.com>
Re: inherit support for foreign tables Stephen Frost <sfrost@snowman.net>
Re: inherit support for foreign tables Tom Lane <tgl@sss.pgh.pa.us>
Re: inherit support for foreign tables Stephen Frost <sfrost@snowman.net>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Robert Haas <robertmhaas@gmail.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Noah Misch <noah@leadboat.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Noah Misch <noah@leadboat.com>
Re: inherit support for foreign tables Alvaro Herrera <alvherre@2ndquadrant.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Heikki Linnakangas <hlinnakangas@vmware.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Heikki Linnakangas <hlinnakangas@vmware.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Heikki Linnakangas <hlinnakangas@vmware.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Tom Lane <tgl@sss.pgh.pa.us>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables David Fetter <david@fetter.org>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Noah Misch <noah@leadboat.com>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Tom Lane <tgl@sss.pgh.pa.us>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Tom Lane <tgl@sss.pgh.pa.us>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Tom Lane <tgl@sss.pgh.pa.us>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Stephen Frost <sfrost@snowman.net>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: inherit support for foreign tables Alvaro Herrera <alvherre@2ndquadrant.com>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables David Fetter <david@fetter.org>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Robert Haas <robertmhaas@gmail.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Tom Lane <tgl@sss.pgh.pa.us>
Re: inherit support for foreign tables Andres Freund <andres@anarazel.de>
Re: inherit support for foreign tables Tom Lane <tgl@sss.pgh.pa.us>
Re: inherit support for foreign tables Robert Haas <robertmhaas@gmail.com>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Michael Paquier <michael.paquier@gmail.com>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Michael Paquier <michael.paquier@gmail.com>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables <furuyao@pm.nttdata.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Tom Lane <tgl@sss.pgh.pa.us>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Compute attr_needed for child relations (was Re: inherit
support for foreign tables) Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: Compute attr_needed for child relations (was Re:
inherit support for foreign tables) Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Compute attr_needed for child relations (was Re: inherit
support for foreign tables) Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: Compute attr_needed for child relations (was Re: inherit support for foreign tables) Tom Lane <tgl@sss.pgh.pa.us>
Re: Compute attr_needed for child relations (was Re: inherit
support for foreign tables) Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: Compute attr_needed for child relations (was Re: inherit support for foreign tables) Tom Lane <tgl@sss.pgh.pa.us>
Re: Compute attr_needed for child relations (was Re: inherit
support for foreign tables) Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: Compute attr_needed for child relations (was Re:
inherit support for foreign tables) Shigeru Hanada <shigeru.hanada@gmail.com>
Re: Compute attr_needed for child relations (was Re:
inherit support for foreign tables) Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Compute attr_needed for child relations (was Re: inherit
support for foreign tables) Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: Compute attr_needed for child relations (was Re:
inherit support for foreign tables) Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
[BUG?] tuples from file_fdw has strange xids. Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [BUG?] tuples from file_fdw has strange xids. Tom Lane <tgl@sss.pgh.pa.us>
Re: [BUG?] tuples from file_fdw has strange xids. Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Shigeru Hanada <shigeru.hanada@gmail.com>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Shigeru Hanada <shigeru.hanada@gmail.com>
Re: inherit support for foreign tables "Etsuro Fujita" <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Tom Lane <tgl@sss.pgh.pa.us>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Shigeru Hanada <shigeru.hanada@gmail.com>
Re: inherit support for foreign tables Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: inherit support for foreign tables Shigeru Hanada <shigeru.hanada@gmail.com>
Re: inherit support for foreign tables Jim Nasby <jim@nasby.net>
Jim Nasby wrote: > On 4/14/15 5:49 AM, Etsuro Fujita wrote: > > postgres=# create foreign table ft1 (c1 int) server myserver options > > (table_name 't1'); > > CREATE FOREIGN TABLE > > postgres=# create foreign table ft2 (c1 int) server myserver options > > (table_name 't2'); > > CREATE FOREIGN TABLE > > postgres=# alter foreign table ft2 inherit ft1; > > ALTER FOREIGN TABLE > > postgres=# select * from ft1 for update; > > ERROR: could not find junk tableoid1 column > > > > I think this is a bug. Attached is a patch fixing this issue. > > What happens when the foreign side breaks the inheritance? Does the FDW > somehow know to check that fact for each query? This is a meaningless question. The remote tables don't have to have an inheritance relationship already; only the local side sees them as connected. I think the real question is whether we're now (I mean after this patch) emitting useless tableoid columns that we didn't previously have. I think the answer is yes, and if so I think we need a smaller comb to fix the problem. This one seems rather large. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления