Commit d61a361
committed
Remove all traces of tuplestore_donestoring() in the C code
This routine is a no-op since dd04e95 from 2003, with a macro kept
around for compatibility purposes. This has led to the same code
patterns being copy-pasted around for no effect, sometimes in confusing
ways like in pg_logical_slot_get_changes_guts() from logical.c where the
code was actually incorrect.
This issue has been discussed on two different threads recently, so
rather than living with this legacy, remove any uses of this routine in
the C code to simplify things. The compatibility macro is kept to avoid
breaking any out-of-core modules that depend on it.
Reported-by: Tatsuhito Kasahara, Justin Pryzby
Author: Tatsuhito Kasahara
Discussion: https://postgr.es/m/20211217200419.GQ17618@telsasoft.com
Discussion: https://postgr.es/m/CAP0=ZVJeeYfAeRfmzqAF2Lumdiv4S4FewyBnZd4DPTrsSQKJKw@mail.gmail.com1 parent 4620892 commit d61a361
File tree
24 files changed
+1
-77
lines changed- contrib
- dblink
- pageinspect
- pg_stat_statements
- postgres_fdw
- tablefunc
- xml2
- src
- backend
- access/transam
- commands
- foreign
- replication
- logical
- storage/ipc
- utils
- adt
- misc
- mmgr
- include/utils
24 files changed
+1
-77
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
1009 | | - | |
1010 | 1008 | | |
1011 | 1009 | | |
1012 | 1010 | | |
| |||
1988 | 1986 | | |
1989 | 1987 | | |
1990 | 1988 | | |
1991 | | - | |
1992 | | - | |
1993 | | - | |
1994 | 1989 | | |
1995 | 1990 | | |
1996 | 1991 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | 328 | | |
330 | | - | |
331 | 329 | | |
332 | 330 | | |
333 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1803 | 1803 | | |
1804 | 1804 | | |
1805 | 1805 | | |
1806 | | - | |
1807 | 1806 | | |
1808 | 1807 | | |
1809 | 1808 | | |
1810 | 1809 | | |
1811 | 1810 | | |
1812 | | - | |
1813 | 1811 | | |
1814 | 1812 | | |
1815 | 1813 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1508 | 1508 | | |
1509 | 1509 | | |
1510 | 1510 | | |
1511 | | - | |
1512 | | - | |
1513 | | - | |
1514 | | - | |
1515 | 1511 | | |
1516 | | - | |
1517 | 1512 | | |
1518 | 1513 | | |
1519 | 1514 | | |
| |||
1578 | 1573 | | |
1579 | 1574 | | |
1580 | 1575 | | |
1581 | | - | |
1582 | | - | |
1583 | 1576 | | |
1584 | 1577 | | |
1585 | 1578 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
943 | 943 | | |
944 | 944 | | |
945 | 945 | | |
946 | | - | |
947 | | - | |
948 | 946 | | |
949 | 947 | | |
950 | 948 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
783 | 783 | | |
784 | 784 | | |
785 | 785 | | |
786 | | - | |
787 | | - | |
788 | 786 | | |
789 | 787 | | |
790 | 788 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | 255 | | |
257 | 256 | | |
258 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1401 | 1401 | | |
1402 | 1402 | | |
1403 | 1403 | | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
1407 | 1404 | | |
1408 | 1405 | | |
1409 | 1406 | | |
| |||
2061 | 2058 | | |
2062 | 2059 | | |
2063 | 2060 | | |
2064 | | - | |
2065 | | - | |
2066 | | - | |
2067 | 2061 | | |
2068 | 2062 | | |
2069 | 2063 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2021 | 2021 | | |
2022 | 2022 | | |
2023 | 2023 | | |
2024 | | - | |
2025 | | - | |
2026 | | - | |
2027 | 2024 | | |
2028 | 2025 | | |
2029 | 2026 | | |
| |||
2112 | 2109 | | |
2113 | 2110 | | |
2114 | 2111 | | |
2115 | | - | |
2116 | | - | |
2117 | | - | |
2118 | 2112 | | |
2119 | 2113 | | |
2120 | 2114 | | |
| |||
2417 | 2411 | | |
2418 | 2412 | | |
2419 | 2413 | | |
2420 | | - | |
2421 | | - | |
2422 | | - | |
2423 | 2414 | | |
2424 | 2415 | | |
2425 | 2416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | 781 | | |
785 | 782 | | |
786 | 783 | | |
| |||
0 commit comments