Re: [BUGS] pg_dump fails for views with UNION and SELECT DISTINCT

2002-06-14 Thread Tom Lane
"Sam O'Connor" <[EMAIL PROTECTED]> writes: > If I create a view like this: > CREATE VIEW v AS > SELECT i FROM a > UNION > SELECT DISTINCT i FROM b > It functions as expected but it causes pg_dump to produce > bad output. "ORDER BY b.i" is added to the view definition. This appears to be fixed al

[BUGS] pg_dump fails for views with UNION and SELECT DISTINCT

2002-06-14 Thread Sam O'Connor
If I create a view like this: CREATE VIEW v AS SELECT i FROM a UNION SELECT DISTINCT i FROM b It functions as expected but it causes pg_dump to produce bad output. "ORDER BY b.i" is added to the view definition. On restore this causes: ERROR: ORDER BY on a UNION/INTERSECT/EXCEPT result must be o