forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita1b395b
committed
Add GUC and storage parameter to set the maximum size of GIN pending list.
Previously the maximum size of GIN pending list was controlled only bywork_mem. But the reasonable value of work_mem and the reasonable sizeof the list are basically not the same, so it was not appropriate tocontrol both of them by only one GUC, i.e., work_mem. This commitseparates new GUC, pending_list_cleanup_size, from work_mem to allowusers to control only the size of the list.Also this commit adds pending_list_cleanup_size as new storage parameterto allow users to specify the size of the list per index. This is useful,for example, when users want to increase the size of the list only forthe GIN index which can be updated heavily, and decrease it otherwise.Reviewed by Etsuro Fujita.1 parentae667f7 commita1b395b
File tree
16 files changed
+125
-31
lines changed- doc/src/sgml
- ref
- src
- backend
- access
- common
- gin
- utils/misc
- bin/psql
- include
- access
- utils
- test/regress
- expected
- sql
16 files changed
+125
-31
lines changedLines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5911 | 5911 |
| |
5912 | 5912 |
| |
5913 | 5913 |
| |
| 5914 | + | |
| 5915 | + | |
| 5916 | + | |
| 5917 | + | |
| 5918 | + | |
| 5919 | + | |
| 5920 | + | |
| 5921 | + | |
| 5922 | + | |
| 5923 | + | |
| 5924 | + | |
| 5925 | + | |
| 5926 | + | |
| 5927 | + | |
| 5928 | + | |
| 5929 | + | |
| 5930 | + | |
| 5931 | + | |
| 5932 | + | |
| 5933 | + | |
| 5934 | + | |
5914 | 5935 |
| |
5915 | 5936 |
| |
5916 | 5937 |
| |
|
Lines changed: 19 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
728 | 728 |
| |
729 | 729 |
| |
730 | 730 |
| |
731 |
| - | |
732 |
| - | |
| 731 | + | |
| 732 | + | |
733 | 733 |
| |
734 | 734 |
| |
735 | 735 |
| |
| |||
750 | 750 |
| |
751 | 751 |
| |
752 | 752 |
| |
753 |
| - | |
| 753 | + | |
754 | 754 |
| |
755 | 755 |
| |
756 | 756 |
| |
| |||
812 | 812 |
| |
813 | 813 |
| |
814 | 814 |
| |
815 |
| - | |
| 815 | + | |
816 | 816 |
| |
817 | 817 |
| |
818 | 818 |
| |
819 |
| - | |
| 819 | + | |
820 | 820 |
| |
821 |
| - | |
822 |
| - | |
823 |
| - | |
824 |
| - | |
825 |
| - | |
826 |
| - | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
827 | 835 |
| |
828 | 836 |
| |
829 | 837 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
861 | 861 |
| |
862 | 862 |
| |
863 | 863 |
| |
864 |
| - | |
| 864 | + | |
865 | 865 |
| |
866 | 866 |
| |
867 | 867 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
| 49 | + | |
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
|
Lines changed: 16 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
300 | 300 |
| |
301 | 301 |
| |
302 | 302 |
| |
303 |
| - | |
| 303 | + | |
304 | 304 |
| |
305 | 305 |
| |
306 | 306 |
| |
| |||
327 | 327 |
| |
328 | 328 |
| |
329 | 329 |
| |
330 |
| - | |
| 330 | + | |
331 | 331 |
| |
332 | 332 |
| |
333 | 333 |
| |
| |||
341 | 341 |
| |
342 | 342 |
| |
343 | 343 |
| |
344 |
| - | |
| 344 | + | |
345 | 345 |
| |
346 | 346 |
| |
347 | 347 |
| |
348 | 348 |
| |
349 |
| - | |
| 349 | + | |
350 | 350 |
| |
351 | 351 |
| |
352 | 352 |
| |
| |||
359 | 359 |
| |
360 | 360 |
| |
361 | 361 |
| |
362 |
| - | |
| 362 | + | |
363 | 363 |
| |
364 | 364 |
| |
365 | 365 |
| |
| |||
369 | 369 |
| |
370 | 370 |
| |
371 | 371 |
| |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
372 | 383 |
| |
373 | 384 |
| |
374 | 385 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
219 | 227 |
| |
220 | 228 |
| |
221 | 229 |
| |
|
Lines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
| 29 | + | |
28 | 30 |
| |
29 | 31 |
| |
30 | 32 |
| |
| |||
228 | 230 |
| |
229 | 231 |
| |
230 | 232 |
| |
| 233 | + | |
231 | 234 |
| |
232 | 235 |
| |
233 | 236 |
| |
| |||
422 | 425 |
| |
423 | 426 |
| |
424 | 427 |
| |
425 |
| - | |
| 428 | + | |
| 429 | + | |
426 | 430 |
| |
427 | 431 |
| |
428 | 432 |
| |
429 |
| - | |
| 433 | + | |
| 434 | + | |
430 | 435 |
| |
431 | 436 |
| |
432 | 437 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
525 | 525 |
| |
526 | 526 |
| |
527 | 527 |
| |
528 |
| - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
529 | 531 |
| |
530 | 532 |
| |
531 | 533 |
| |
|
Lines changed: 11 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 | 99 |
| |
108 | 100 |
| |
109 | 101 |
| |
| |||
2550 | 2542 |
| |
2551 | 2543 |
| |
2552 | 2544 |
| |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
2553 | 2556 |
| |
2554 | 2557 |
| |
2555 | 2558 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
519 | 519 |
| |
520 | 520 |
| |
521 | 521 |
| |
| 522 | + | |
522 | 523 |
| |
523 | 524 |
| |
524 | 525 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1172 | 1172 |
| |
1173 | 1173 |
| |
1174 | 1174 |
| |
1175 |
| - | |
| 1175 | + | |
1176 | 1176 |
| |
1177 | 1177 |
| |
1178 | 1178 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 |
| - | |
| 68 | + | |
69 | 69 |
| |
| 70 | + | |
70 | 71 |
| |
71 | 72 |
| |
72 | 73 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
| 318 | + | |
318 | 319 |
| |
319 | 320 |
| |
320 | 321 |
| |
321 | 322 |
| |
322 | 323 |
| |
323 | 324 |
| |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
324 | 330 |
| |
325 | 331 |
| |
326 | 332 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
21 | 29 |
| |
22 | 30 |
| |
23 | 31 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2240 | 2240 |
| |
2241 | 2241 |
| |
2242 | 2242 |
| |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
2243 | 2256 |
| |
2244 | 2257 |
| |
2245 | 2258 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
654 | 654 |
| |
655 | 655 |
| |
656 | 656 |
| |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
657 | 664 |
| |
658 | 665 |
| |
659 | 666 |
| |
|
0 commit comments
Comments
(0)