-
- Downloads
Change initdb and CREATE DATABASE to actively reject attempts to create
databases with encodings that are incompatible with the server's LC_CTYPE locale, when we can determine that (which we can on most modern platforms, I believe). C/POSIX locale is compatible with all encodings, of course, so there is still some usefulness to CREATE DATABASE's ENCODING option, but this will insulate us against all sorts of recurring complaints caused by mismatched settings. I moved initdb's existing LC_CTYPE-to-encoding mapping knowledge into a new src/port/ file so it could be shared by CREATE DATABASE.
Showing
- doc/src/sgml/charset.sgml 35 additions, 22 deletionsdoc/src/sgml/charset.sgml
- doc/src/sgml/ref/create_database.sgml 18 additions, 2 deletionsdoc/src/sgml/ref/create_database.sgml
- src/Makefile.global.in 2 additions, 2 deletionssrc/Makefile.global.in
- src/backend/commands/dbcommands.c 29 additions, 1 deletionsrc/backend/commands/dbcommands.c
- src/bin/initdb/initdb.c 48 additions, 220 deletionssrc/bin/initdb/initdb.c
- src/include/port.h 4 additions, 1 deletionsrc/include/port.h
- src/port/Makefile 18 additions, 15 deletionssrc/port/Makefile
- src/port/chklocale.c 246 additions, 0 deletionssrc/port/chklocale.c
Loading
Please register or sign in to comment