Fix string_to_array() to correctly handle the case where there are
overlapping possible matches for the separator string, such as
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.
varlena.c (r126.96.36.199 -> r188.8.131.52)
pgsql-committers by date
|Next:||From: User Mario__||Date: 2006-10-07 02:12:57|
|Subject: webtranslator - l10n: Some changes added - tags replacement was |
|Previous:||From: Tom Lane||Date: 2006-10-07 00:12:05|
|Subject: pgsql: Fix string_to_array() to correctly handle the case where there |