pgsql: Fix string_to_array() to correctly handle the case where there

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix string_to_array() to correctly handle the case where there
Дата
Msg-id 20061007001212.BA3D19FB442@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix string_to_array() to correctly handle the case where there are
overlapping possible matches for the separator string, such as
string_to_array('123xx456xxx789', 'xx').
Also, revise the logic of replace(), split_part(), and string_to_array()
to avoid O(N^2) work from redundant searches and conversions to pg_wchar
format when there are N matches to the separator string.
Backpatched the full patch as far as 8.0.  7.4 also has the bug, but the
code has diverged a lot, so I just went for a quick-and-dirty fix of the
bug itself in that branch.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        varlena.c (r1.106.2.6 -> r1.106.2.7)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/varlena.c.diff?r1=1.106.2.6&r2=1.106.2.7)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix string_to_array() to correctly handle the case where there
Следующее
От: mario__@pgfoundry.org (User Mario__)
Дата:
Сообщение: webtranslator - l10n: Some changes added - tags replacement was