pgsql: Limit to_tsvector_byid's initial array allocation to something s

2023-09-25 Thread Tom Lane
Limit to_tsvector_byid's initial array allocation to something sane. The initial estimate of the number of distinct ParsedWords is just that: an estimate. Don't let it exceed what palloc is willing to allocate. If in fact we need more entries, we'll eventually fail trying to enlarge the array.

pgsql: Limit to_tsvector_byid's initial array allocation to something s

2023-09-25 Thread Tom Lane
Limit to_tsvector_byid's initial array allocation to something sane. The initial estimate of the number of distinct ParsedWords is just that: an estimate. Don't let it exceed what palloc is willing to allocate. If in fact we need more entries, we'll eventually fail trying to enlarge the array.

pgsql: Limit to_tsvector_byid's initial array allocation to something s

2023-09-25 Thread Tom Lane
Limit to_tsvector_byid's initial array allocation to something sane. The initial estimate of the number of distinct ParsedWords is just that: an estimate. Don't let it exceed what palloc is willing to allocate. If in fact we need more entries, we'll eventually fail trying to enlarge the array.

pgsql: Limit to_tsvector_byid's initial array allocation to something s

2023-09-25 Thread Tom Lane
Limit to_tsvector_byid's initial array allocation to something sane. The initial estimate of the number of distinct ParsedWords is just that: an estimate. Don't let it exceed what palloc is willing to allocate. If in fact we need more entries, we'll eventually fail trying to enlarge the array.

pgsql: Limit to_tsvector_byid's initial array allocation to something s

2023-09-25 Thread Tom Lane
Limit to_tsvector_byid's initial array allocation to something sane. The initial estimate of the number of distinct ParsedWords is just that: an estimate. Don't let it exceed what palloc is willing to allocate. If in fact we need more entries, we'll eventually fail trying to enlarge the array.

pgsql: Limit to_tsvector_byid's initial array allocation to something s

2023-09-25 Thread Tom Lane
Limit to_tsvector_byid's initial array allocation to something sane. The initial estimate of the number of distinct ParsedWords is just that: an estimate. Don't let it exceed what palloc is willing to allocate. If in fact we need more entries, we'll eventually fail trying to enlarge the array.

pgsql: Limit to_tsvector_byid's initial array allocation to something s

2023-09-25 Thread Tom Lane
Limit to_tsvector_byid's initial array allocation to something sane. The initial estimate of the number of distinct ParsedWords is just that: an estimate. Don't let it exceed what palloc is willing to allocate. If in fact we need more entries, we'll eventually fail trying to enlarge the array.