Re: SQL Challenge: Arbitrary Cross-tab

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SQL Challenge: Arbitrary Cross-tab
Дата
Msg-id 22765.1092842015@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: SQL Challenge: Arbitrary Cross-tab  ("Greg Sabino Mullane" <greg@turnstep.com>)
Ответы Re: SQL Challenge: Arbitrary Cross-tab  ("Greg Sabino Mullane" <greg@turnstep.com>)
Список pgsql-sql
"Greg Sabino Mullane" <greg@turnstep.com> writes:
>> Don't you miss for each subselect an order by tid ?
> No: since all the SELECTs are part of one statement, they
> will have the same (pseudo-random) implicit order.

Nope; Gaetano's right, you cannot assume that.  It's entirely possible
for the planner to choose different plans depending on the OFFSET.
(Maybe not very likely, with such small offsets, but could happen.)
        regards, tom lane


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

Предыдущее
От: Gaetano Mendola
Дата:
Сообщение: Re: SQL Challenge: Arbitrary Cross-tab
Следующее
От: Tom Lane
Дата:
Сообщение: Re: multi column foreign key for implicitly unique columns