pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Repair bug in regexp split performance improvements. 7+ messages / 1 participants [nested] [flat]
* pgsql: Repair bug in regexp split performance improvements. @ 2018-09-12 18:56 Andrew Gierth <rhodiumtoad@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Andrew Gierth @ 2018-09-12 18:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ab78c6e36635da96c5ef8c229942a16b5391c0b9 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Repair bug in regexp split performance improvements. @ 2018-09-12 18:56 Andrew Gierth <rhodiumtoad@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Andrew Gierth @ 2018-09-12 18:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f7d0343ead29cd3e44eccd1c8b7cc291b79209fe 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Repair bug in regexp split performance improvements. @ 2018-09-12 18:56 Andrew Gierth <rhodiumtoad@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Andrew Gierth @ 2018-09-12 18:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Repair bug in regexp split performance improvements. @ 2018-09-12 18:56 Andrew Gierth <rhodiumtoad@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Andrew Gierth @ 2018-09-12 18:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a389ddc759ae26169f3b124f2b72eea44eaf292a 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Repair bug in regexp split performance improvements. @ 2018-09-12 18:56 Andrew Gierth <rhodiumtoad@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Andrew Gierth @ 2018-09-12 18:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/b7f6bcbffcc0b41d783c0c9c61766428159969ff 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Repair bug in regexp split performance improvements. @ 2018-09-12 18:56 Andrew Gierth <rhodiumtoad@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Andrew Gierth @ 2018-09-12 18:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/03e0bc1171c864b9add64f0ef5351126faa4e3f5 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Repair bug in regexp split performance improvements. @ 2018-09-12 18:56 Andrew Gierth <rhodiumtoad@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Andrew Gierth @ 2018-09-12 18:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/77c2663de779f702dbe3fe6e05213c2eca14fcf5 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(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2018-09-12 18:56 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-09-12 18:56 pgsql: Repair bug in regexp split performance improvements. Andrew Gierth <rhodiumtoad@postgresql.org> 2018-09-12 18:56 pgsql: Repair bug in regexp split performance improvements. Andrew Gierth <rhodiumtoad@postgresql.org> 2018-09-12 18:56 pgsql: Repair bug in regexp split performance improvements. Andrew Gierth <rhodiumtoad@postgresql.org> 2018-09-12 18:56 pgsql: Repair bug in regexp split performance improvements. Andrew Gierth <rhodiumtoad@postgresql.org> 2018-09-12 18:56 pgsql: Repair bug in regexp split performance improvements. Andrew Gierth <rhodiumtoad@postgresql.org> 2018-09-12 18:56 pgsql: Repair bug in regexp split performance improvements. Andrew Gierth <rhodiumtoad@postgresql.org> 2018-09-12 18:56 pgsql: Repair bug in regexp split performance improvements. Andrew Gierth <rhodiumtoad@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox