pgsql: Fix ts_stat's failure on empty tsvector. - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix ts_stat's failure on empty tsvector.
Date
Msg-id 20091013143321.748BF753FB7@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Tags:
----
REL8_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        tsvector_op.c (r1.23 -> r1.23.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/tsvector_op.c?r1=1.23&r2=1.23.2.1)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix ts_stat's failure on empty tsvector.
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Add "\pset linestyle ascii/unicode" option to psql, allowing our