forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcf1c650
committed
Limit to_tsvector_byid's initial array allocation to something sane.
The initial estimate of the number of distinct ParsedWords is justthat: an estimate. Don't let it exceed what palloc is willing toallocate. If in fact we need more entries, we'll eventually failtrying to enlarge the array. But if we don't, this allows success oninputs that currently draw "invalid memory alloc request size".Per bug #18080 from Uwe Binder. Back-patch to all supported branches.Discussion:https://postgr.es/m/18080-d5c5e58fef8c99b7@postgresql.org1 parent3aff1d3 commitcf1c650
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
252 | 252 |
| |
253 | 253 |
| |
254 | 254 |
| |
| 255 | + | |
| 256 | + | |
255 | 257 |
| |
256 | 258 |
| |
257 | 259 |
| |
|
0 commit comments
Comments
(0)