Fix ts_stat's failure on empty tsvector.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3d70b5d01a604cf6a4af372b4abc500cd3c2cf12
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-10-13T14:33:21Z
Releases: 8.4.2
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

PathChange+/−
src/backend/utils/adt/tsvector_op.c modified +15 −10