Mathieu De Zutter <mathieu(at)dezutter(dot)org> writes:
> Apart from avoiding views or subselects when sorting afterwards and
> putting the whole bunch in a huge SQL statement (which i'll have to
> produce on-the-fly), do you have an other alternative?
See if you can avoid the subselects in the view's SELECT list. That's
what's preventing 7.3 from doing a good job.
regards, tom lane