]> granicus.if.org Git - postgresql/commit
Fix ts_stat's failure on empty tsvector.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 13 Oct 2009 14:33:21 +0000 (14:33 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 13 Oct 2009 14:33:21 +0000 (14:33 +0000)
commit3d70b5d01a604cf6a4af372b4abc500cd3c2cf12
tree56dce04e2af20c35471c15ef30dad4627780211a
parent09a12ef929909851f31794dcd361e469ad467599
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.
src/backend/utils/adt/tsvector_op.c