No string is over 200 chars. By function name I assumed the get_next_seq is pgsql related, but now I've learned it's glibc. Sorting in shell with same locale is indeed very slow, I used just 1% of data in that column and it finishes sorting in a few minutes. Thanks, I'll check with glibc.
Regards,
Boris
On Mon, Nov 20, 2017 at 7:17 PM, Peter Geoghegan <pg@bowt.ie> wrote: