Re: inherit support for foreign tables
От
Shigeru Hanada
Тема
Re: inherit support for foreign tables
Дата
Msg-id
CAEZqfEc6MkEx+L=bQHVPEjr_+LgWSzy8uA11ci=X0A8VEPRmiw@mail.gmail.com
Ответ на
Re: inherit support for foreign tables (Tom Lane)
Список
Дерево обсуждения
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>
2013/11/18 Tom Lane : > Robert Haas writes: >> I think it's been previously proposed that we have some version of a >> CHECK constraint that effectively acts as an assertion for query >> optimization purposes, but isn't actually enforced by the system. I >> can see that being useful in a variety of situations, including this >> one. > > Yeah, I think it would be much smarter to provide a different syntax > to explicitly represent the notion that we're only assuming the condition > is true, and not trying to enforce it. I'd like to revisit this feature. Explicit notation to represent not-enforcing (assertive?) is an interesting idea. I'm not sure which word is appropriate, but for example, let's use the word ASSERTIVE as a new constraint attribute. CREATE TABLE parent ( id int NOT NULL, group int NOT NULL, name text ); CREATE FOREIGN TABLE child_grp1 ( /* no additional column */ ) INHERITS (parent) SERVER server1; ALTER TABLE child_grp1 ADD CONSTRAINT chk_group1 CHECK (group = 1) ASSERTIVE; If ASSERTIVE is specified, it's not guaranteed that the constraint is enforced completely, so it should be treated as a hint for planner. As Robert mentioned, enforcing as much as we can during INSERT/UPDATE is one option about this issue. In addition, an idea which I can't throw away is to assume that all constraints defined on foreign tables as ASSERTIVE. Foreign tables potentially have dangers to have "wrong" data by updating source data not through foreign tables. This is not specific to an FDW, so IMO constraints defined on foreign tables are basically ASSERTIVE. Of course PG can try to maintain data correct, but always somebody might break it. Besides CHECK constraints, currently NOT NULL constraints are virtually ASSERTIVE (not enforcing). Should it also be noted explicitly? Thoughts? -- Shigeru HANADA
В списке pgsql-hackers по дате отправления