Re: Warts with SELECT DISTINCT

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Warts with SELECT DISTINCT
Дата
Msg-id 87d5eu1lkz.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Warts with SELECT DISTINCT  (Bruno Wolff III <bruno@wolff.to>)
Ответы Re: Warts with SELECT DISTINCT  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-hackers
Bruno Wolff III <bruno@wolff.to> writes:

> > Whereas it shouldn't be hard to prove that this is equivalent:
> > 
> > stark=> explain select col1 from test group by upper(col1),col1 order by upper(col1);
> >                              QUERY PLAN                              
> > ---------------------------------------------------------------------
> >  Group  (cost=88.50..98.23 rows=200 width=32)
> >    ->  Sort  (cost=88.50..91.58 rows=1230 width=32)
> >          Sort Key: upper(col1), col1
> >          ->  Seq Scan on test  (cost=0.00..25.38 rows=1230 width=32)
> > (4 rows)
> 
> I don't think you can assume that that will be true for any locale. If there
> are two different characters that both have the same uppercase version, this
> will break things.

No it won't.

-- 
greg



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Warts with SELECT DISTINCT
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Warts with SELECT DISTINCT