- Notifications
You must be signed in to change notification settings - Fork5
Commitda7d44b
committed
postgres_fdw: Clean up handling of system columns.
Previously, querying the xmin column of a single postgres_fdw foreigntable fetched the tuple length, xmax the typmod, and cmin or cmax thecomposite type OID of the tuple. However, when you queried severalsuch tables and the join got shipped to the remote side, these columnsended up containing the remote values of the corresponding columns.Both behaviors are rather unprincipled, the former for obvious reasonsand the latter because the remote values of these columns don't haveany local significance; our transaction IDs are in a different spacethan those of the remote machine. Clean this up by setting all ofthese fields to 0 in both cases. Also fix the handling of tableoidto be sane.Robert Haas and Ashutosh Bapat, reviewed by Etsuro Fujita.1 parent5702277 commitda7d44b
File tree
3 files changed
+78
-22
lines changed- contrib/postgres_fdw
- expected
3 files changed
+78
-22
lines changedLines changed: 45 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1571 | 1571 |
| |
1572 | 1572 |
| |
1573 | 1573 |
| |
1574 |
| - | |
1575 | 1574 |
| |
1576 | 1575 |
| |
| 1576 | + | |
1577 | 1577 |
| |
1578 | 1578 |
| |
1579 | 1579 |
| |
1580 | 1580 |
| |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
1581 | 1606 |
| |
1582 | 1607 |
| |
1583 | 1608 |
| |
| |||
1606 | 1631 |
| |
1607 | 1632 |
| |
1608 | 1633 |
| |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
1609 | 1648 |
| |
1610 | 1649 |
| |
1611 | 1650 |
| |
1612 | 1651 |
| |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
1613 | 1657 |
| |
1614 | 1658 |
| |
1615 | 1659 |
| |
|
0 commit comments
Comments
(0)