Re: BUG #12137: ORDER BY with expresion changes the output if added

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #12137: ORDER BY with expresion changes the output if added
Дата
Msg-id 27034.1417710141@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #12137: ORDER BY with expresion changes the output if added  (dima@koulikoff.ru)
Ответы Re: BUG #12137: ORDER BY with expresion changes the output if added  (Dmitri Koulikov <koulikoff@gmail.com>)
Список pgsql-bugs
dima@koulikoff.ru writes:
> The request ...
> returns Russian names in :name field from the geoname_names table
> But if I add a line
> ORDER BY CASE WHEN geoname_names.name IS NOT NULL THEN geoname_names.name
> ELSE geonames.name END
> at the end of the request all the values for name are taken from the
> geonames table.

I can't reproduce any such misbehavior with the given information
and some made-up data.  Can you provide a self-contained test case?
Or at least EXPLAIN (ANALYZE, VERBOSE) output for both queries?

            regards, tom lane

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

Предыдущее
От: David G Johnston
Дата:
Сообщение: Re: BUG #12137: ORDER BY with expresion changes the output if added
Следующее
От: me@jandrabek.cz
Дата:
Сообщение: BUG #12146: Crash when using UNION ALL