Обсуждение: pgsql: Fix ts_stat's failure on empty tsvector.

Поиск
Список
Период
Сортировка

pgsql: Fix ts_stat's failure on empty tsvector.

От
tgl@postgresql.org (Tom Lane)
Дата:
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)