pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: When WCOs are present, disable direct foreign table modification 2+ messages / 1 participants [nested] [flat]
* pgsql: When WCOs are present, disable direct foreign table modification @ 2017-07-24 20:25 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Robert Haas @ 2017-07-24 20:25 UTC (permalink / raw) To: pgsql-committers When WCOs are present, disable direct foreign table modification. If the user modifies a view that has CHECK OPTIONs and this gets translated into a modification to an underlying relation which happens to be a foreign table, the check options should be enforced. In the normal code path, that was happening properly, but it was not working properly for "direct" modification because the whole operation gets pushed to the remote side in that case and we never have an option to enforce the constraint against individual tuples. Fix by disabling direct modification when there is a need to enforce CHECK OPTIONs. Etsuro Fujita, reviewed by Kyotaro Horiguchi and by me. Discussion: http://postgr.es/m/f8a48f54-6f02-9c8a-5250-9791603171ee@lab.ntt.co.jp Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/7086be6e3627c1ad797e32ebbdd232905b5f577f Modified Files -------------- contrib/postgres_fdw/expected/postgres_fdw.out | 60 ++++++++++++++++++++++++++ contrib/postgres_fdw/sql/postgres_fdw.sql | 24 +++++++++++ doc/src/sgml/postgres-fdw.sgml | 6 ++- src/backend/optimizer/plan/createplan.c | 7 ++- 4 files changed, 93 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: When WCOs are present, disable direct foreign table modification @ 2017-07-24 20:25 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Robert Haas @ 2017-07-24 20:25 UTC (permalink / raw) To: pgsql-committers When WCOs are present, disable direct foreign table modification. If the user modifies a view that has CHECK OPTIONs and this gets translated into a modification to an underlying relation which happens to be a foreign table, the check options should be enforced. In the normal code path, that was happening properly, but it was not working properly for "direct" modification because the whole operation gets pushed to the remote side in that case and we never have an option to enforce the constraint against individual tuples. Fix by disabling direct modification when there is a need to enforce CHECK OPTIONs. Etsuro Fujita, reviewed by Kyotaro Horiguchi and by me. Discussion: http://postgr.es/m/f8a48f54-6f02-9c8a-5250-9791603171ee@lab.ntt.co.jp Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/971faefc240bf214076e529773c7ca690c5e053d Modified Files -------------- contrib/postgres_fdw/expected/postgres_fdw.out | 60 ++++++++++++++++++++++++++ contrib/postgres_fdw/sql/postgres_fdw.sql | 24 +++++++++++ doc/src/sgml/postgres-fdw.sgml | 6 ++- src/backend/optimizer/plan/createplan.c | 7 ++- 4 files changed, 93 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-07-24 20:25 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-07-24 20:25 pgsql: When WCOs are present, disable direct foreign table modification Robert Haas <rhaas@postgresql.org> 2017-07-24 20:25 pgsql: When WCOs are present, disable direct foreign table modification Robert Haas <rhaas@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox