Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

dbcommands.c

Blame
    • Tom Lane's avatar
      70b9b9b7
      Change initdb and CREATE DATABASE to actively reject attempts to create · 70b9b9b7
      Tom Lane authored
      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.
      70b9b9b7
      History
      Change initdb and CREATE DATABASE to actively reject attempts to create
      Tom Lane authored
      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.