• Tom Lane's avatar
    Avoid conflicts with collation aliases generated by stripping. · 0333a734
    Tom Lane authored
    This resulted in failures depending on the order of "locale -a" output.
    The original coding in initdb sorted the results, but that should be
    unnecessary as long as "locale -a" doesn't print duplicate names.  The
    original entries will then all be non-dups, and while we might generate
    duplicate aliases by stripping, they should be for different encodings and
    thus not conflict.  Even if the latter assumption fails somehow, it won't
    be fatal because we're using if_not_exists mode for the aliases.
    
    Discussion: https://postgr.es/m/26116.1484751196%40sss.pgh.pa.us
    0333a734
collationcmds.c 8.89 KB