forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc19615f
committed
Disallow setting MAX_PARTITION_BUFFERS to less than 2
Add some comments to mention that this value must be at least 2 and alsoadd a StaticAssertDecl to cause compilation failure if anyone tries tobuild with an invalid value.The multiInsertBuffers list must have at least two elements due to how thecode in CopyMultiInsertInfoFlush() pushes the current ResultRelInfo'sCopyMultiInsertBuffer to the end of the list. If the first element isalso the last element, bad things will happen.Author: Zhang Mingli <avamingli@gmail.com>Discussion:https://postgr.es/m/CAApHDvpQ6t9ROcqbD-OgqR04Kfq4vQKw79Vo6r5j%2BciHwsSfkA%40mail.gmail.com1 parent72fe6d2 commitc19615f
1 file changed
+11
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 |
| |
73 | 76 |
| |
74 | 77 |
| |
| |||
550 | 553 |
| |
551 | 554 |
| |
552 | 555 |
| |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
553 | 563 |
| |
554 | 564 |
| |
555 | 565 |
| |
|
0 commit comments
Comments
(0)