- Notifications
You must be signed in to change notification settings - Fork28
Commita51f004
committed
Repair breakage of rules containing INSERT ... SELECT actions, per bug
report from Joel Burton. Turns out that my simple idea of turning theSELECT into a subquery does not interact well *at all* with the way therule rewriter works. Really what we need to make INSERT ... SELECT workcleanly is to decouple targetlists from rangetables: an INSERT ... SELECTwants to have two levels of targetlist but only one rangetable. No timefor that for 7.1, however, so I've inserted some ugly hacks to make therewriter know explicitly about the structure of INSERT ... SELECT queries.Ugh :-(1 parentd946604 commita51f004
File tree
5 files changed
+263
-207
lines changed- src
- backend
- parser
- rewrite
- include/rewrite
5 files changed
+263
-207
lines changedLines changed: 38 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
312 | 312 |
| |
313 | 313 |
| |
314 | 314 |
| |
315 |
| - | |
| 315 | + | |
316 | 316 |
| |
317 | 317 |
| |
318 | 318 |
| |
| |||
324 | 324 |
| |
325 | 325 |
| |
326 | 326 |
| |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
327 | 332 |
| |
328 |
| - | |
329 |
| - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
330 | 338 |
| |
331 |
| - | |
332 | 339 |
| |
333 | 340 |
| |
334 | 341 |
| |
| |||
1587 | 1594 |
| |
1588 | 1595 |
| |
1589 | 1596 |
| |
1590 |
| - | |
| 1597 | + | |
| 1598 | + | |
1591 | 1599 |
| |
1592 | 1600 |
| |
1593 | 1601 |
| |
| |||
1608 | 1616 |
| |
1609 | 1617 |
| |
1610 | 1618 |
| |
1611 |
| - | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
1612 | 1627 |
| |
1613 | 1628 |
| |
1614 | 1629 |
| |
| |||
1648 | 1663 |
| |
1649 | 1664 |
| |
1650 | 1665 |
| |
1651 |
| - | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
1652 | 1677 |
| |
1653 |
| - | |
| 1678 | + | |
1654 | 1679 |
| |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
1655 | 1683 |
| |
1656 | 1684 |
| |
1657 | 1685 |
| |
1658 | 1686 |
| |
1659 |
| - | |
| 1687 | + | |
1660 | 1688 |
| |
1661 | 1689 |
| |
1662 | 1690 |
| |
|
Lines changed: 7 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
205 | 206 |
| |
206 | 207 |
| |
207 | 208 |
| |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
208 | 214 |
| |
209 |
| - | |
210 | 215 |
| |
211 | 216 |
| |
212 |
| - | |
213 | 217 |
| |
214 |
| - | |
215 | 218 |
| |
216 | 219 |
| |
217 |
| - | |
218 | 220 |
| |
219 | 221 |
| |
220 | 222 |
| |
|
0 commit comments
Comments
(0)