Commit 424954a
Use simple struct for table sync COPY buffer state
copy_read_data() only needs to track the COPY buffer's data pointer,
length, and cursor position. Replace the StringInfo with a small local
struct containing just those fields.
Author: Chao Li <lic@highgo.com>
Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/5B2C9B4C-EAE6-4F21-AF99-613A561D26DC@gmail.com1 parent 086f6f1 commit 424954a
1 file changed
Lines changed: 18 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
130 | 137 | | |
131 | 138 | | |
132 | 139 | | |
| |||
649 | 656 | | |
650 | 657 | | |
651 | 658 | | |
652 | | - | |
| 659 | + | |
653 | 660 | | |
654 | 661 | | |
655 | 662 | | |
656 | 663 | | |
657 | | - | |
658 | | - | |
| 664 | + | |
| 665 | + | |
659 | 666 | | |
660 | 667 | | |
661 | 668 | | |
| |||
680 | 687 | | |
681 | 688 | | |
682 | 689 | | |
683 | | - | |
684 | | - | |
685 | | - | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
686 | 693 | | |
687 | | - | |
| 694 | + | |
688 | 695 | | |
689 | 696 | | |
690 | | - | |
| 697 | + | |
691 | 698 | | |
692 | | - | |
| 699 | + | |
693 | 700 | | |
694 | 701 | | |
695 | 702 | | |
| |||
1199 | 1206 | | |
1200 | 1207 | | |
1201 | 1208 | | |
1202 | | - | |
| 1209 | + | |
1203 | 1210 | | |
1204 | 1211 | | |
1205 | 1212 | | |
| |||
0 commit comments