summaryrefslogtreecommitdiff
path: root/contrib/tablefunc/tablefunc.c
diff options
context:
space:
mode:
authorTom Lane2007-11-09 20:10:20 +0000
committerTom Lane2007-11-09 20:10:20 +0000
commit8d31b6d24d276af09e09c5620c463802745e200f (patch)
treead1b4feb382772f7e70a9d7428c6038048b7aa15 /contrib/tablefunc/tablefunc.c
parentb4b939e455be304a164b89665a754b142dd58d31 (diff)
Second pass at improving LIKE/regex estimation in non-C locales. It turns
out that it's actually quite likely that a string that is an extension of the given prefix will sort as larger than the "greater" string our previous code created. To provide some defense against that, do the comparisons against a modified string instead of just the bare prefix. We tack on "Z", "z", "y", or "9", whichever is seen as largest in the current locale. Testing suggests that this is sufficient at least for cases involving ASCII data.
Diffstat (limited to 'contrib/tablefunc/tablefunc.c')
0 files changed, 0 insertions, 0 deletions