pgsql: Fix incorrect encoding-aware name truncation in

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix incorrect encoding-aware name truncation in
Дата
Msg-id 20090816181434.7527075331E@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix incorrect encoding-aware name truncation in makeArrayTypeName().

truncate_identifier won't do anything if the passed-in strlen is already
less than NAMEDATALEN, which it always would be given the strlcpy usage.
This has been broken since the arrays-of-composite-types code went in.

Arguably truncate_identifier is suffering from excessive optimization
and should always process the string, but for the moment I'll take the
more localized patch.

Per bug #4987.

Modified Files:
--------------
    pgsql/src/backend/catalog:
        pg_type.c (r1.126 -> r1.127)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/catalog/pg_type.c?r1=1.126&r2=1.127)

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

Предыдущее
От: eggyknap@pgfoundry.org (User Eggyknap)
Дата:
Сообщение: pgsnmpd - pgsnmpd: Add ability to read from YAML config file.
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix incorrect encoding-aware name truncation in