- Notifications
You must be signed in to change notification settings - Fork5
Commit081a604
committed
Fix another oversight in CustomScan patch.
execCurrent.c's search_plan_tree() must recognize a CustomScan on thetarget relation. This would only be helpful for custom providers thatsupport CurrentOfExpr quals, which is probably a bit far-fetched, butit's not impossible I think. But even without assuming that, we needto recognize a scanned-relation match so that we will properly throwerror if the desired relation is being scanned with both a CustomScanand a regular scan (ie, self-join).Also recognize ForeignScanState for similar reasons. Supporting WHERECURRENT OF on a foreign table is probably even more far-fetched thanit is for custom scans, but I think in principle you could do it withpostgres_fdw (or another FDW that supports the ctid column). Thiswould be a back-patchable bug fix if existing FDWs handled CurrentOfExpr,but I doubt any do so I won't bother back-patching.1 parent03e574a commit081a604
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
258 | 258 |
| |
259 | 259 |
| |
260 | 260 |
| |
261 |
| - | |
| 261 | + | |
262 | 262 |
| |
263 | 263 |
| |
264 | 264 |
| |
265 | 265 |
| |
266 | 266 |
| |
267 | 267 |
| |
| 268 | + | |
| 269 | + | |
268 | 270 |
| |
269 | 271 |
| |
270 | 272 |
| |
|
0 commit comments
Comments
(0)