Another optimizer question

Поиск
Список
Период
Сортировка
От Dennis Haney
Тема Another optimizer question
Дата
Msg-id 4016916D.5040707@diku.dk
обсуждение исходный текст
Ответы Re: Another optimizer question  (Bruno Wolff III <bruno@wolff.to>)
Re: Another optimizer question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi

Is it just me, or is there any way a sort could be relevant in a 
subquery? (except on queries containing volatile functions)

select a.* from test1 a, (select id from test1 order by num) as b where 
a.id = b.id;

There is no constraint on the order of 'a', so why is pull_up_subqueries 
explicitly ignoring subqueries that contain an 'order by'?

-- 
Dennis



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

Предыдущее
От: "Simon Riggs"
Дата:
Сообщение: Re: Recursive optimization of IN subqueries
Следующее
От: Dennis Bjorklund
Дата:
Сообщение: Function call