- Notifications
You must be signed in to change notification settings - Fork5
Commit23a27b0
committed
Widen query numbers-of-tuples-processed counters to uint64.
This patch widens SPI_processed, EState's es_processed field, PortalData'sportalPos field, FuncCallContext's call_cntr and max_calls fields,ExecutorRun's count argument, PortalRunFetch's result, and the max numberof rows in a SPITupleTable to uint64, and deals with (I hope) all theensuing fallout. Some of these values were declared uint32 before, andothers "long".I also removed PortalData's posOverflow field, since that logic seemspretty useless given that portalPos is now always 64 bits.The user-visible results are that command tags for SELECT etc willcorrectly report tuple counts larger than 4G, as will plpgsql's GETGET DIAGNOSTICS ... ROW_COUNT command. Queries processing more tuplesthan that are still not exactly the norm, but they're becoming morecommon.Most values associated with FETCH/MOVE distances, such as PortalRun's countargument and the count argument of most SPI functions that have one, remaindeclared as "long". It's not clear whether it would be worth promotingthose to int64; but it would definitely be a large dollop of additionalAPI churn on top of this, and it would only help 32-bit platforms whichseem relatively less likely to see any benefit.Andreas Scherbaum, reviewed by Christian Ullrich, additional hacking by me1 parente011575 commit23a27b0
File tree
32 files changed
+273
-181
lines changed- contrib
- auto_explain
- pg_stat_statements
- spi
- tablefunc
- xml2
- doc/src/sgml
- src
- backend
- commands
- executor
- tcop
- utils/adt
- include
- executor
- nodes
- tcop
- utils
- pl
- plperl
- plpgsql/src
- plpython
- tcl
- test/regress
32 files changed
+273
-181
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 |
| - | |
| 64 | + | |
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
| |||
257 | 257 |
| |
258 | 258 |
| |
259 | 259 |
| |
260 |
| - | |
| 260 | + | |
261 | 261 |
| |
262 | 262 |
| |
263 | 263 |
| |
|
Lines changed: 3 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
289 | 289 |
| |
290 | 290 |
| |
291 | 291 |
| |
292 |
| - | |
| 292 | + | |
293 | 293 |
| |
294 | 294 |
| |
295 | 295 |
| |
| |||
866 | 866 |
| |
867 | 867 |
| |
868 | 868 |
| |
869 |
| - | |
| 869 | + | |
870 | 870 |
| |
871 | 871 |
| |
872 | 872 |
| |
| |||
1001 | 1001 |
| |
1002 | 1002 |
| |
1003 | 1003 |
| |
1004 |
| - | |
1005 |
| - | |
1006 |
| - | |
1007 |
| - | |
1008 |
| - | |
1009 |
| - | |
1010 |
| - | |
| 1004 | + | |
1011 | 1005 |
| |
1012 | 1006 |
| |
1013 | 1007 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
593 | 593 |
| |
594 | 594 |
| |
595 | 595 |
| |
596 |
| - | |
| 596 | + | |
597 | 597 |
| |
598 | 598 |
| |
599 | 599 |
| |
|
Lines changed: 14 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
120 | 120 |
| |
121 | 121 |
| |
122 | 122 |
| |
123 |
| - | |
| 123 | + | |
124 | 124 |
| |
125 | 125 |
| |
126 | 126 |
| |
| |||
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
177 |
| - | |
178 |
| - | |
| 177 | + | |
| 178 | + | |
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
| |||
352 | 352 |
| |
353 | 353 |
| |
354 | 354 |
| |
355 |
| - | |
356 |
| - | |
| 355 | + | |
| 356 | + | |
357 | 357 |
| |
358 | 358 |
| |
359 | 359 |
| |
| |||
364 | 364 |
| |
365 | 365 |
| |
366 | 366 |
| |
367 |
| - | |
| 367 | + | |
368 | 368 |
| |
369 | 369 |
| |
370 | 370 |
| |
| |||
389 | 389 |
| |
390 | 390 |
| |
391 | 391 |
| |
392 |
| - | |
| 392 | + | |
393 | 393 |
| |
394 | 394 |
| |
395 | 395 |
| |
| |||
708 | 708 |
| |
709 | 709 |
| |
710 | 710 |
| |
711 |
| - | |
| 711 | + | |
712 | 712 |
| |
713 | 713 |
| |
714 | 714 |
| |
| |||
740 | 740 |
| |
741 | 741 |
| |
742 | 742 |
| |
743 |
| - | |
| 743 | + | |
744 | 744 |
| |
745 | 745 |
| |
746 | 746 |
| |
| |||
800 | 800 |
| |
801 | 801 |
| |
802 | 802 |
| |
803 |
| - | |
| 803 | + | |
804 | 804 |
| |
805 | 805 |
| |
806 | 806 |
| |
| |||
823 | 823 |
| |
824 | 824 |
| |
825 | 825 |
| |
826 |
| - | |
827 |
| - | |
| 826 | + | |
| 827 | + | |
828 | 828 |
| |
829 | 829 |
| |
830 | 830 |
| |
| |||
1220 | 1220 |
| |
1221 | 1221 |
| |
1222 | 1222 |
| |
1223 |
| - | |
| 1223 | + | |
1224 | 1224 |
| |
1225 | 1225 |
| |
1226 | 1226 |
| |
| |||
1313 | 1313 |
| |
1314 | 1314 |
| |
1315 | 1315 |
| |
1316 |
| - | |
| 1316 | + | |
1317 | 1317 |
| |
1318 | 1318 |
| |
1319 | 1319 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
553 | 553 |
| |
554 | 554 |
| |
555 | 555 |
| |
556 |
| - | |
557 |
| - | |
| 556 | + | |
558 | 557 |
| |
559 | 558 |
| |
560 | 559 |
| |
| |||
664 | 663 |
| |
665 | 664 |
| |
666 | 665 |
| |
667 |
| - | |
668 | 666 |
| |
669 | 667 |
| |
670 | 668 |
| |
| |||
692 | 690 |
| |
693 | 691 |
| |
694 | 692 |
| |
| 693 | + | |
| 694 | + | |
695 | 695 |
| |
696 | 696 |
| |
697 | 697 |
| |
|
Lines changed: 9 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
400 | 400 |
| |
401 | 401 |
| |
402 | 402 |
| |
403 |
| - | |
404 |
| - | |
| 403 | + | |
| 404 | + | |
405 | 405 |
| |
406 | 406 |
| |
407 | 407 |
| |
| |||
4116 | 4116 |
| |
4117 | 4117 |
| |
4118 | 4118 |
| |
4119 |
| - | |
| 4119 | + | |
4120 | 4120 |
| |
4121 |
| - | |
| 4121 | + | |
4122 | 4122 |
| |
4123 | 4123 |
| |
4124 | 4124 |
| |
4125 | 4125 |
| |
4126 |
| - | |
| 4126 | + | |
4127 | 4127 |
| |
4128 | 4128 |
| |
4129 | 4129 |
| |
| |||
4141 | 4141 |
| |
4142 | 4142 |
| |
4143 | 4143 |
| |
4144 |
| - | |
| 4144 | + | |
4145 | 4145 |
| |
4146 | 4146 |
| |
4147 | 4147 |
| |
4148 | 4148 |
| |
| 4149 | + | |
4149 | 4150 |
| |
4150 | 4151 |
| |
4151 | 4152 |
| |
| |||
4173 | 4174 |
| |
4174 | 4175 |
| |
4175 | 4176 |
| |
4176 |
| - | |
| 4177 | + | |
4177 | 4178 |
| |
4178 |
| - | |
| 4179 | + | |
4179 | 4180 |
| |
4180 | 4181 |
| |
4181 | 4182 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
200 |
| - | |
| 200 | + | |
201 | 201 |
| |
202 | 202 |
| |
203 | 203 |
| |
|
Lines changed: 4 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
148 | 148 |
| |
149 | 149 |
| |
150 | 150 |
| |
151 |
| - | |
| 151 | + | |
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
| |||
181 | 181 |
| |
182 | 182 |
| |
183 | 183 |
| |
184 |
| - | |
| 184 | + | |
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
| |||
392 | 392 |
| |
393 | 393 |
| |
394 | 394 |
| |
395 |
| - | |
396 |
| - | |
397 |
| - | |
| 395 | + | |
| 396 | + | |
398 | 397 |
| |
399 | 398 |
| |
400 | 399 |
| |
401 | 400 |
| |
402 | 401 |
| |
403 | 402 |
| |
404 |
| - | |
405 |
| - | |
406 |
| - | |
407 |
| - | |
408 |
| - | |
409 | 403 |
| |
410 | 404 |
| |
411 | 405 |
| |
|
Lines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 |
| - | |
| 82 | + | |
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
| |||
278 | 278 |
| |
279 | 279 |
| |
280 | 280 |
| |
281 |
| - | |
| 281 | + | |
282 | 282 |
| |
283 | 283 |
| |
284 | 284 |
| |
| |||
288 | 288 |
| |
289 | 289 |
| |
290 | 290 |
| |
291 |
| - | |
| 291 | + | |
292 | 292 |
| |
293 | 293 |
| |
294 | 294 |
| |
| |||
1521 | 1521 |
| |
1522 | 1522 |
| |
1523 | 1523 |
| |
1524 |
| - | |
| 1524 | + | |
1525 | 1525 |
| |
1526 | 1526 |
| |
1527 | 1527 |
| |
1528 | 1528 |
| |
1529 |
| - | |
| 1529 | + | |
1530 | 1530 |
| |
1531 | 1531 |
| |
1532 | 1532 |
| |
| |||
1542 | 1542 |
| |
1543 | 1543 |
| |
1544 | 1544 |
| |
1545 |
| - | |
| 1545 | + | |
1546 | 1546 |
| |
1547 | 1547 |
| |
1548 | 1548 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
853 | 853 |
| |
854 | 854 |
| |
855 | 855 |
| |
856 |
| - | |
| 856 | + | |
857 | 857 |
| |
858 | 858 |
| |
859 | 859 |
| |
860 | 860 |
| |
861 | 861 |
| |
862 | 862 |
| |
863 | 863 |
| |
864 |
| - | |
| 864 | + | |
865 | 865 |
| |
866 | 866 |
| |
867 | 867 |
| |
|
0 commit comments
Comments
(0)