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

  • Tom Lane's avatar
    8f8a5df6
    Make initdb behave sanely when the selected locale has codeset "US-ASCII". · 8f8a5df6
    Tom Lane authored
    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).
    8f8a5df6
    History
    Make initdb behave sanely when the selected locale has codeset "US-ASCII".
    Tom Lane authored
    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).