forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit06bd311
committed
Revert "Refactor CopyReadAttributes{CSV,Text}() to use a callback in COPY FROM"
This reverts commit95fb5b4, for reasons similar to what led to1aa8324. In this case, the callback was called once per row, whichis less worse than the previous callback introduced for COPY TO calledonce per argument for each row, still the patch set discussed to plug incustom routines to the COPY paths would be able to know which subroutineto use depending on its CopyFromState, so this led to a suboptimalapproach at the end.For now, this part is reverted to consider better which approach to use.Discussion:https://postgr.es/m/20240206014125.qofww7ew3dx3v3uk@awork3.anarazel.de1 parentd0071f9 commit06bd311
File tree
3 files changed
+16
-30
lines changed- src
- backend/commands
- include/commands
3 files changed
+16
-30
lines changedLines changed: 0 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1776 | 1776 |
| |
1777 | 1777 |
| |
1778 | 1778 |
| |
1779 |
| - | |
1780 |
| - | |
1781 |
| - | |
1782 |
| - | |
1783 |
| - | |
1784 | 1779 |
| |
1785 | 1780 |
| |
1786 | 1781 |
| |
|
Lines changed: 16 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| |||
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
| 155 | + | |
| 156 | + | |
155 | 157 |
| |
156 | 158 |
| |
157 | 159 |
| |
| |||
773 | 775 |
| |
774 | 776 |
| |
775 | 777 |
| |
776 |
| - | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
777 | 782 |
| |
778 | 783 |
| |
779 | 784 |
| |
| |||
825 | 830 |
| |
826 | 831 |
| |
827 | 832 |
| |
828 |
| - | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
829 | 837 |
| |
830 | 838 |
| |
831 | 839 |
| |
| |||
1494 | 1502 |
| |
1495 | 1503 |
| |
1496 | 1504 |
| |
1497 |
| - | |
| 1505 | + | |
1498 | 1506 |
| |
1499 | 1507 |
| |
1500 | 1508 |
| |
| |||
1748 | 1756 |
| |
1749 | 1757 |
| |
1750 | 1758 |
| |
1751 |
| - | |
| 1759 | + | |
1752 | 1760 |
| |
1753 | 1761 |
| |
1754 | 1762 |
| |
|
Lines changed: 0 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 | 55 |
| |
63 | 56 |
| |
64 | 57 |
| |
| |||
137 | 130 |
| |
138 | 131 |
| |
139 | 132 |
| |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
145 |
| - | |
146 | 133 |
| |
147 | 134 |
| |
148 | 135 |
| |
| |||
196 | 183 |
| |
197 | 184 |
| |
198 | 185 |
| |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 | 186 |
|
0 commit comments
Comments
(0)