]> 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:14 +0000 (14:33 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 13 Oct 2009 14:33:14 +0000 (14:33 +0000)
commitb14071164366e7efee9dc3a017eb7cb4cfac3428
tree7789edc2b908ac9c4650d598967f71917f0f1301
parent201e5b282bd34379532e9c039e92c88966642951
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