Re: timestamp group by bug???

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: timestamp group by bug???
Дата
Msg-id 467.1111427812@sss.pgh.pa.us
обсуждение исходный текст
Ответ на timestamp group by bug???  ("Celia McInnis" <celia@drmath.ca>)
Ответы Re: timestamp group by bug???  ("Celia McInnis" <celia@drmath.ca>)
Список pgsql-novice
"Celia McInnis" <celia@drmath.ca> writes:
> Help - I'm not sure if this is a bug, but I wouldn't call it a feature! :-)

Hardly a bug ... you told it to order by a textual value, why
would you expect a non-alphabetical sort ordering?

I would suggest ordering by EXTRACT(DOW FROM mytimestamp).
You'll probably have to list that as a second GROUP BY item in order
to make Postgres happy with the query.

            regards, tom lane

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

Предыдущее
От: "Celia McInnis"
Дата:
Сообщение: timestamp group by bug???
Следующее
От: "Walker, Jed S"
Дата:
Сообщение: .pgpass file