Another optimizer question

Поиск
Список
Период
Сортировка
От Dennis Haney
Тема Another optimizer question
Дата
Msg-id 4016916D.5040707@diku.dk
обсуждение исходный текст
Ответы Re: Another optimizer question
Re: Another optimizer question
Список 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 по дате отправления: