Rod Taylor <rbt@zort.ca> writes:
> For some reason a view with a select distinct, an order and an exception
> by will cause pg_dump to output a double order by -- one for each select
> which of course is bad SQL.
This is fixed in current sources and REL7_2 branch.
regards, tom lane