Need to use pg_perm_setlocale when setting LC_CTYPE and LC_COLLATE at startup.