Re: order by

Поиск
Список
Период
Сортировка
От Luca Ferrari
Тема Re: order by
Дата
Msg-id CAKoxK+5Zd5uS6VoGNK9fYedfSH8a84MdY0YPDv_bksz+Rts7Mw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: order by  (Vijaykumar Jain <vijaykumarjain.github@gmail.com>)
Ответы Re: order by  (Thomas Munro <thomas.munro@gmail.com>)
Re: order by  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-general
On Thu, Jun 10, 2021 at 10:15 AM Vijaykumar Jain
<vijaykumarjain.github@gmail.com> wrote:
> you can run an explain analyze to check what is going on,
> when you provide a table in query in the order by clause, it is
> ordered by cols of that table in that order.

Clever, thanks!
I also realized that this "table to tuples" expansion works for GROUP BY too.
However, I'm not able to find this documented in GROUP BY, WHERE,
ORDER BY clauses sections into select documentation
<fgrouphttps://www.postgresql.org/docs/12/sql-select.html>. Could be
my fault, of course.

Luca



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

Предыдущее
От: Vijaykumar Jain
Дата:
Сообщение: Re: order by
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: order by