pgsql-bugs(at)postgresql(dot)org writes:
> SELECT id from questions where id < 40 intersect select id from questions where id > 20 order by id;
> ERROR: get_sortgroupclause_tle: ORDER/GROUP BY expression not found in targetlist
Already fixed in current sources, but thanks for the report.
regards, tom lane