Re: [GENERAL] Equivalence Classes when using IN

Поиск
Список
Период
Сортировка
От Kim Rose Carlsen
Тема Re: [GENERAL] Equivalence Classes when using IN
Дата
Msg-id VI1PR05MB1709ABD41EFF09E4FAAFF4C3C7750@VI1PR05MB1709.eurprd05.prod.outlook.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Equivalence Classes when using IN  (David Rowley <david.rowley@2ndquadrant.com>)
Список pgsql-general
> If the only reason that is_simple_subquery() rejects subqueries with
> ORDER BY is due to wanting to keep the order by of a view, then
> couldn't we make is_simple_subquery() a bit smarter and have it check
> if the subquery is going to be joined to something else, which likely
> would destroy the order, or at least it would remove any guarantees of
> it.
>
> Something like the attached?

I dont know if it makes any difference that the ORDER BY is used in a
DISTINCT ON clause. In this case the ORDER BY is important.

- Kim

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

Предыдущее
От: Kim Rose Carlsen
Дата:
Сообщение: Re: [GENERAL] Equivalence Classes when using IN
Следующее
От: Olivani Prisila
Дата:
Сообщение: [GENERAL] [asking about how to upgrade docker postgresql without losing the data]