Slightly refactor varstr_sortsupport() to improve readability.

Author: Andreas Karlsson
Discussion: https://postgr.es/m/69c2a864-846f-4309-bd5a-aaa1c34f9a11@proxel.se
pull/175/head
Jeff Davis 10 months ago
parent 15c1abd977
commit a95ff1fe2e
  1. 4
      src/backend/utils/adt/varlena.c

@ -1917,7 +1917,6 @@ varstr_sortsupport(SortSupport ssup, Oid typid, Oid collid)
}
else
ssup->comparator = varlenafastcmp_locale;
}
/*
* Unfortunately, it seems that abbreviation for non-C collations is
@ -1934,8 +1933,9 @@ varstr_sortsupport(SortSupport ssup, Oid typid, Oid collid)
* categorically, we may still want or need to disable it for particular
* platforms.
*/
if (!collate_c && !pg_strxfrm_enabled(locale))
if (!pg_strxfrm_enabled(locale))
abbreviate = false;
}
/*
* If we're using abbreviated keys, or if we're using a locale-aware

Loading…
Cancel
Save