pgsql: Add a defense to prevent core dumps if 8.2 version of rank_cd()

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Add a defense to prevent core dumps if 8.2 version of rank_cd()
Дата
Msg-id 20061228010901.675F99FA492@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Add a defense to prevent core dumps if 8.2 version of rank_cd() is used with
the 8.1 SQL function definition for it.  Per report from Rajesh Kumar Mallah,
such a DBA error doesn't seem at all improbable, and the cost of checking for
it is not very high compared to the cost of running this function.  (It would
have been better to change the C name of the function so it wouldn't be called
by the old SQL definition, but it's too late for that now in the 8.2 branch.)

Modified Files:
--------------
    pgsql/contrib/tsearch2:
        rank.c (r1.20 -> r1.21)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch2/rank.c.diff?r1=1.20&r2=1.21)
    pgsql/src/include/catalog:
        pg_type.h (r1.173 -> r1.174)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/catalog/pg_type.h.diff?r1=1.173&r2=1.174)

В списке pgsql-committers по дате отправления:

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: fflush the \o file, if any, after each backslash command.
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Add a defense to prevent core dumps if 8.2 version of rank_cd()