Re: Issue with NULLS LAST, with postgres_fdw sort pushdown

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Issue with NULLS LAST, with postgres_fdw sort pushdown
Дата
Msg-id 26733.1456981736@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Issue with NULLS LAST, with postgres_fdw sort pushdown  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Ответы Re: Issue with NULLS LAST, with postgres_fdw sort pushdown  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Ashutosh Bapat <ashutosh.bapat@enterprisedb.com> writes:
> On Thu, Mar 3, 2016 at 7:27 AM, Michael Paquier <michael.paquier@gmail.com>
> wrote:
>> Per explain.c, this looks inconsistent to me. Shouldn't NULLS LAST be
>> applied only if DESC is used in this ORDER BY clause?

> ... In this case we are constructing a query to be
> sent to the foreign server and it's better not to leave the defaults to be
> interpreted by the foreign server; in case it interprets them in different
> fashion. get_rule_orderby() also explicitly adds these options.

Yeah, I agree that we don't need to go out of our way to make the query
succinct here.  Explicitness is easier and safer too, so why not?
        regards, tom lane



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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Dockerfile for testing with Perl 5.8.8
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: TAP / recovery-test fs-level backups, psql enhancements etc