aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-10-07 00:11:53 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-10-07 00:11:53 +0000
commit452fa214e5f035a3b58eff206205075d8562a3a5 (patch)
tree635ea9e9511284e485878292e5faa47194cc430a /src/backend/tcop/postgres.c
parent11d4d424d4be8cccde845dd770e99ac03ce3306a (diff)
downloadpostgresql-452fa214e5f035a3b58eff206205075d8562a3a5.tar.gz
postgresql-452fa214e5f035a3b58eff206205075d8562a3a5.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/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions