Fix ts_stat's failure on empty tsvector.
Tom Lane <tgl@sss.pgh.pa.us>
Fix ts_stat's failure on empty tsvector. Also insert a couple of Asserts that check for stack overflow. Bogus coding appears to be new in 8.4 --- older releases had a much simpler algorithm here. Per bug #5111.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/tsvector_op.c | modified | +15 −10 |