• Tom Lane's avatar
    Create an explicit concept of collations that work for any encoding. · e3c732a8
    Tom Lane authored
    Use collencoding = -1 to represent such a collation in pg_collation.
    We need this to make the "default" entry work sanely, and a later
    patch will fix the C/POSIX entries to be represented this way instead
    of duplicating them across all encodings.  All lookup operations now
    search first for an entry that's database-encoding-specific, and then
    for the same name with collencoding = -1.
    
    Also some incidental code cleanup in collationcmds.c and pg_collation.c.
    e3c732a8
collate.linux.utf8.out 20.7 KB