postgresql/src/backend/utils
Tom Lane 81e2255fc7 Fix to_char() to use ASCII-only case-folding rules where appropriate.
formatting.c used locale-dependent case folding rules in some code paths
where the result isn't supposed to be locale-dependent, for example
to_char(timestamp, 'DAY').  Since the source data is always just ASCII
in these cases, that usually didn't matter ... but it does matter in
Turkish locales, which have unusual treatment of "i" and "I".  To confuse
matters even more, the misbehavior was only visible in UTF8 encoding,
because in single-byte encodings we used pg_toupper/pg_tolower which
don't have locale-specific behavior for ASCII characters.  Fix by providing
intentionally ASCII-only case-folding functions and using these where
appropriate.  Per bug #7913 from Adnan Dursun.  Back-patch to all active
branches, since it's been like this for a long time.
2013-03-05 13:02:38 -05:00
..
adt Fix to_char() to use ASCII-only case-folding rules where appropriate. 2013-03-05 13:02:38 -05:00
cache Fix error-checking typo in check_TSCurrentConfig(). 2013-01-20 23:10:18 -05:00
error Tweak previous patch to ensure edata->filename always gets initialized. 2011-11-30 00:37:14 -05:00
fmgr Ignore SECURITY DEFINER and SET attributes for a PL's call handler. 2012-05-30 23:28:10 -04:00
hash Add defenses against integer overflow in dynahash numbuckets calculations. 2012-12-11 22:09:20 -05:00
init Fix filling of postmaster.pid in bootstrap/standalone mode. 2012-12-16 15:02:07 -05:00
mb Back-patch addition of pg_wchar-to-multibyte conversion functionality. 2012-07-10 16:53:27 -04:00
misc Reset vacuum_defer_cleanup_age to PGC_SIGHUP. 2013-02-04 16:42:12 +00:00
mmgr Run a portal's cleanup hook immediately when pushing it to FAILED state. 2012-02-15 16:18:39 -05:00
resowner pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
sort Fix failure to account for memory used by tuplestore_putvalues(). 2011-06-15 14:05:39 -04:00
time Fix race condition in enum value comparisons. 2012-07-01 17:12:59 -04:00
.gitignore Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
errcodes.txt Per-column collation support 2011-02-08 23:04:18 +02:00
Gen_dummy_probes.sed Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
Gen_fmgrtab.pl Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
generate-errcodes.pl Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
Makefile Make handling of errcodes.h more consistent with other generated headers. 2011-02-04 09:29:10 -05:00
probes.d Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00