pgsql: Repair bug in regexp split performance improvements.
В списке pgsql-committers по дате отправления:
| От | Andrew Gierth |
|---|---|
| Тема | pgsql: Repair bug in regexp split performance improvements. |
| Дата | |
| Msg-id | E1g0AJ0-0001Ad-4r@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Repair bug in regexp split performance improvements. Commit c8ea87e4b introduced a temporary conversion buffer for substrings extracted during regexp splits. Unfortunately the code that sized it was failing to ignore the effects of ignored degenerate regexp matches, so for regexp_split_* calls it could under-size the buffer in such cases. Fix, and add some regression test cases (though those will only catch the bug if run in a multibyte encoding). Backpatch to 9.3 as the faulty code was. Thanks to the PostGIS project, Regina Obe and Paul Ramsey for the report (via IRC) and assistance in analysis. Patch by me. Branch ------ REL9_3_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/dea7fc60a0512b37730fb2d69ae85074ec106cfa Modified Files -------------- src/backend/utils/adt/regexp.c | 16 ++++++++++------ src/test/regress/expected/strings.out | 18 ++++++++++++++++++ src/test/regress/sql/strings.sql | 3 +++ 3 files changed, 31 insertions(+), 6 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера