diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-10-07 00:12:05 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-10-07 00:12:05 +0000 |
commit | 704f8ea11c250b900e656ff6dc9ec3684c74afcd (patch) | |
tree | ccce3ee6ff0db8087fb85a7580fdee5c8a12f4ce /src/backend/executor/nodeSort.c | |
parent | d2cc024be10c85eca94688af863b21b54eacd690 (diff) | |
download | postgresql-704f8ea11c250b900e656ff6dc9ec3684c74afcd.tar.gz postgresql-704f8ea11c250b900e656ff6dc9ec3684c74afcd.zip |
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.
Diffstat (limited to 'src/backend/executor/nodeSort.c')
0 files changed, 0 insertions, 0 deletions