Views on UNIONs - Mailing list pgsql-hackers

From Bruce Momjian
Subject Views on UNIONs
Date
Msg-id 199801092133.QAA21411@candle.pha.pa.us
Whole thread Raw
List pgsql-hackers
While you can do a UNION of views, you can not do a VIEW of UNIONs.

This is OK:

    select * from view1 UNION select * from view2;

This is not OK:

    create view testv as select * from test1 UNION select * from test2;

Does the standard allow this?  Thomas?  I currently print a 'not
implemented' message.

Informix does not allow it, and I can't figure out how to do it with the
re-write system yet.


--
Bruce Momjian
maillist@candle.pha.pa.us

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] column labels now with obligatory 'as'
Next
From: Peter T Mount
Date:
Subject: Re: [HACKERS] grant broken