Another optimizer question - Mailing list pgsql-hackers

From Dennis Haney
Subject Another optimizer question
Date
Msg-id 4016916D.5040707@diku.dk
Whole thread Raw
Responses Re: Another optimizer question
Re: Another optimizer question
List 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 by date:

Previous
From: "Simon Riggs"
Date:
Subject: Re: Recursive optimization of IN subqueries
Next
From: Dennis Bjorklund
Date:
Subject: Function call