forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc0989c6
committed
Change the interpretation of the primary_key_attnums parameter of
dblink_build_sql_insert() and related functions. Now the column numbersare treated as logical not physical column numbers. This will provide sanerbehavior in the presence of dropped columns; furthermore, if we ever getaround to allowing rearrangement of logical column ordering, the originaldefinition would become nearly untenable from a usability standpoint.Per recent discussion of dblink's handling of dropped columns.Not back-patched for fear of breaking existing applications.1 parent77a4c51 commitc0989c6
File tree
4 files changed
+85
-17
lines changed- contrib/dblink
- expected
- sql
- doc/src/sgml
4 files changed
+85
-17
lines changedLines changed: 27 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 |
| |
| |||
2381 | 2381 |
| |
2382 | 2382 |
| |
2383 | 2383 |
| |
2384 |
| - | |
| 2384 | + | |
2385 | 2385 |
| |
2386 | 2386 |
| |
2387 | 2387 |
| |
2388 | 2388 |
| |
| 2389 | + | |
| 2390 | + | |
2389 | 2391 |
| |
2390 | 2392 |
| |
2391 | 2393 |
| |
| |||
2416 | 2418 |
| |
2417 | 2419 |
| |
2418 | 2420 |
| |
| 2421 | + | |
| 2422 | + | |
2419 | 2423 |
| |
2420 |
| - | |
2421 |
| - | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
2422 | 2445 |
| |
2423 | 2446 |
| |
2424 | 2447 |
| |
2425 |
| - | |
2426 | 2448 |
| |
2427 | 2449 |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
903 | 903 |
| |
904 | 904 |
| |
905 | 905 |
| |
906 |
| - | |
| 906 | + | |
907 | 907 |
| |
908 | 908 |
| |
909 | 909 |
| |
910 | 910 |
| |
911 | 911 |
| |
912 | 912 |
| |
913 |
| - | |
| 913 | + | |
914 | 914 |
| |
915 | 915 |
| |
916 | 916 |
| |
917 | 917 |
| |
918 | 918 |
| |
919 | 919 |
| |
920 |
| - | |
| 920 | + | |
921 | 921 |
| |
922 | 922 |
| |
923 | 923 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
430 | 430 |
| |
431 | 431 |
| |
432 | 432 |
| |
433 |
| - | |
| 433 | + | |
434 | 434 |
| |
435 | 435 |
| |
436 |
| - | |
| 436 | + | |
437 | 437 |
| |
438 | 438 |
| |
439 |
| - | |
| 439 | + | |
440 | 440 |
|
Lines changed: 52 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
1294 | 1294 |
| |
1295 | 1295 |
| |
1296 | 1296 |
| |
1297 |
| - | |
| 1297 | + | |
1298 | 1298 |
| |
1299 |
| - | |
| 1299 | + | |
1300 | 1300 |
| |
1301 | 1301 |
| |
1302 | 1302 |
| |
| |||
1620 | 1620 |
| |
1621 | 1621 |
| |
1622 | 1622 |
| |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
1623 | 1627 |
| |
1624 | 1628 |
| |
1625 | 1629 |
| |
| |||
1659 | 1663 |
| |
1660 | 1664 |
| |
1661 | 1665 |
| |
1662 |
| - | |
| 1666 | + | |
1663 | 1667 |
| |
1664 | 1668 |
| |
1665 | 1669 |
| |
| |||
1745 | 1749 |
| |
1746 | 1750 |
| |
1747 | 1751 |
| |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
1748 | 1766 |
| |
1749 | 1767 |
| |
1750 | 1768 |
| |
| |||
1775 | 1793 |
| |
1776 | 1794 |
| |
1777 | 1795 |
| |
1778 |
| - | |
| 1796 | + | |
1779 | 1797 |
| |
1780 | 1798 |
| |
1781 | 1799 |
| |
| |||
1845 | 1863 |
| |
1846 | 1864 |
| |
1847 | 1865 |
| |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
1848 | 1880 |
| |
1849 | 1881 |
| |
1850 | 1882 |
| |
| |||
1875 | 1907 |
| |
1876 | 1908 |
| |
1877 | 1909 |
| |
1878 |
| - | |
| 1910 | + | |
1879 | 1911 |
| |
1880 | 1912 |
| |
1881 | 1913 |
| |
| |||
1964 | 1996 |
| |
1965 | 1997 |
| |
1966 | 1998 |
| |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
1967 | 2013 |
| |
1968 | 2014 |
| |
1969 | 2015 |
| |
|
0 commit comments
Comments
(0)