diff options
author | Robert Haas <rhaas@postgresql.org> | 2015-10-15 13:00:40 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2015-10-15 13:10:39 -0400 |
commit | 5043193b78919a1bd144563aadc2f7f726549913 (patch) | |
tree | 3a518c81df7d452ff9a50a2181d29fd0d76604c3 /src/include/regex/regex.h | |
parent | 54e07be2dfd314a64dc2ce03a6a7f59cac1c8a13 (diff) | |
download | postgresql-5043193b78919a1bd144563aadc2f7f726549913.tar.gz postgresql-5043193b78919a1bd144563aadc2f7f726549913.zip |
Allow FDWs to push down quals without breaking EvalPlanQual rechecks.
This fixes a long-standing bug which was discovered while investigating
the interaction between the new join pushdown code and the EvalPlanQual
machinery: if a ForeignScan appears on the inner side of a paramaterized
nestloop, an EPQ recheck would re-return the original tuple even if
it no longer satisfied the pushed-down quals due to changed parameter
values.
This fix adds a new member to ForeignScan and ForeignScanState and a
new argument to make_foreignscan, and requires changes to FDWs which
push down quals to populate that new argument with a list of quals they
have chosen to push down. Therefore, I'm only back-patching to 9.5,
even though the bug is not new in 9.5.
Etsuro Fujita, reviewed by me and by Kyotaro Horiguchi.
Diffstat (limited to 'src/include/regex/regex.h')
0 files changed, 0 insertions, 0 deletions