Another optimizer question

From: Dennis Haney <davh(at)diku(dot)dk>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Another optimizer question
Date: 2004-01-27 16:27:25
Message-ID: 4016916D.5040707@diku.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dennis Bjorklund 2004-01-27 16:33:56 Function call
Previous Message Simon Riggs 2004-01-27 14:49:57 Re: Recursive optimization of IN subqueries