postgresql/src/backend
Tom Lane 8f8a5df694 Make initdb behave sanely when the selected locale has codeset "US-ASCII".
Per discussion, this should result in defaulting to SQL_ASCII encoding.
The original coding could not support that because it conflated selection
of SQL_ASCII encoding with not being able to determine the encoding.
Adjust pg_get_encoding_from_locale()'s API to distinguish these cases,
and fix callers appropriately.  Only initdb actually changes behavior,
since the other callers were perfectly content to consider these cases
equivalent.

Per bug #5178 from Boh Yap.  Not going to bother back-patching, since
no one has complained before and there's an easy workaround (namely,
specify the encoding you want).
2009-11-12 02:46:16 +00:00
..
access Dept of second thoughts: after studying index_getnext() a bit more I realize 2009-11-01 22:30:54 +00:00
bootstrap Create an ALTER DEFAULT PRIVILEGES command, which allows users to adjust 2009-10-05 19:24:49 +00:00
catalog Implement parser hooks for processing ColumnRef and ParamRef nodes, as per my 2009-10-31 01:41:31 +00:00
commands Make initdb behave sanely when the selected locale has codeset "US-ASCII". 2009-11-12 02:46:16 +00:00
executor Fix WHERE CURRENT OF to work as designed within plpgsql. The argument 2009-11-09 02:36:59 +00:00
foreign Somebody seems to have thought they could get away without checking for 2009-06-11 16:14:18 +00:00
lib Assorted minor refactoring in EXPLAIN. 2009-07-24 21:08:42 +00:00
libpq Rewrite pam_passwd_conv_proc to be more robust: avoid assuming that the 2009-10-16 22:08:36 +00:00
main Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodes Add support for invoking parser callback hooks via SPI and in cached plans. 2009-11-04 22:26:08 +00:00
optimizer When FOR UPDATE/SHARE is used with LIMIT, put the LockRows plan node 2009-10-28 14:55:47 +00:00
parser Remove pg_parse_string_token() --- not needed anymore. 2009-11-12 01:13:12 +00:00
po Translations update for 8.5alpha2 2009-10-20 18:23:27 +00:00
port Reserve the shared memory region during backend startup on Windows, so 2009-07-24 20:12:42 +00:00
postmaster reenable -> re-enable 2009-11-05 20:13:06 +00:00
regex 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
rewrite Don't treat NEW and OLD as reserved words anymore. For the purposes of rules 2009-11-05 23:24:27 +00:00
snowball Derived files that are shipped in the distribution used to be built in the 2009-08-28 20:26:19 +00:00
storage Change the autovacuum launcher to read pg_database directly, rather than 2009-08-31 19:41:00 +00:00
tcop Add support for invoking parser callback hooks via SPI and in cached plans. 2009-11-04 22:26:08 +00:00
tsearch Simplify a few makefile rules since install-sh can now install multiple 2009-10-26 21:33:01 +00:00
utils Make initdb behave sanely when the selected locale has codeset "US-ASCII". 2009-11-12 02:46:16 +00:00
common.mk Expand test coverage support to entire tree 2009-08-07 20:50:22 +00:00
Makefile Put back "ifeq ($(PORTNAME), solaris)", this time with some documentation 2009-09-05 21:14:04 +00:00
nls.mk Convert the core lexer and parser into fully reentrant code, by making use 2009-07-13 02:02:20 +00:00