forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb8d3dae
committed
Improve error message for MaxAllocSize overrun in accumArrayResult.
Before, if you went past about 64M array elements in array_agg() andallied functions, you got a generic "invalid memory alloc requestsize" error. This patch replaces that with "array size exceeds themaximum allowed", which seems more user-friendly since it points youto needing to reduce the size of your array result. (This is thesame error text you'd get from construct_md_array in the event ofoverrunning the maximum physical size for the finished array.)Per question from Shaozhong Shi. Since this hasn't come up often,I don't feel a need to back-patch.Discussion:https://postgr.es/m/CA+i5JwYtVS9z2E71PcNKAVPbOn4R2wuj-LqbJsYr_XOz73q7dQ@mail.gmail.com1 parent00f2a25 commitb8d3dae
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5317 | 5317 |
| |
5318 | 5318 |
| |
5319 | 5319 |
| |
| 5320 | + | |
| 5321 | + | |
| 5322 | + | |
| 5323 | + | |
| 5324 | + | |
| 5325 | + | |
5320 | 5326 |
| |
5321 | 5327 |
| |
5322 | 5328 |
| |
|
0 commit comments
Comments
(0)