Обсуждение: pgsql: Add a rank/(rank+1) normalization option to ts_rank().

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

pgsql: Add a rank/(rank+1) normalization option to ts_rank().

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Add a rank/(rank+1) normalization option to ts_rank().  While the usefulness
of this seems a bit marginal, if it's useful enough to be shown in the manual
then we probably ought to support doing it without double evaluation of the
ts_rank function.  Per my proposal earlier today.

Modified Files:
--------------
    pgsql/doc/src/sgml:
        textsearch.sgml (r1.33 -> r1.34)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/textsearch.sgml?r1=1.33&r2=1.34)
    pgsql/src/backend/utils/adt:
        tsrank.c (r1.8 -> r1.9)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/tsrank.c?r1=1.8&r2=1.9)