Re: Postgresql Sort cost Poor performance? - Mailing list pgsql-performance

From Andrew Gierth
Subject Re: Postgresql Sort cost Poor performance?
Date
Msg-id 87d0m6uj5u.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Postgresql Sort cost Poor performance?  ("tank.zhang" <6220104@qq.com>)
Responses Re: Postgresql Sort cost Poor performance?
Re: Postgresql Sort cost Poor performance?
List pgsql-performance
>>>>> "tank" == tank zhang <6220104@qq.com> writes:

 tank>  smtoc        | character varying(50)       |           |          | 
 tank>          Sort Key: smtoc

What is the output of  SHOW lc_collate;

One of the most common reasons for slow sorting is that you're sorting a
text/varchar field in a locale other than C. The slowdown for using
other locales varies according to the data, the locale, and the
operating system, but 8-20x slowdowns are very common, 50-100x slowdowns
are not unusual, and there have been reports of even worse cases with
unusual script combinations.

-- 
Andrew (irc:RhodiumToad)



pgsql-performance by date:

Previous
From: "tank.zhang"
Date:
Subject: Postgresql Sort cost Poor performance?
Next
From: "tank.zhang"
Date:
Subject: Re: Postgresql Sort cost Poor performance?