Re: UNION within VIEW workarounds? - Mailing list pgsql-general

From Ed Loehr
Subject Re: UNION within VIEW workarounds?
Date
Msg-id 3A303D1E.941CCAF9@austin.rr.com
Whole thread Raw
In response to UNION within VIEW workarounds?  (Ed Loehr <eloehr@austin.rr.com>)
Responses Re: UNION within VIEW workarounds?
List pgsql-general
Adam Haberlach wrote:
>
> On Thu, Dec 07, 2000 at 07:27:08PM -0800, Joel Burton wrote:
> > > Given UNIONs are not implemented within views in 7.0.3, what are
> > the
> > > generally suggested work-arounds, if any?
> >
> > Ick. We just did the full SELECTs all the time. A pain.
> >
> > FYI, this is fixed in 7.1. Beta Real Soon Now.
>
>         Out of curiosity, what is the advantage, other then simplification
> of the query itself, of using a view over a straight select?

One advantage is that you can hide internal db schema from applications
that may need to access your db.  That frees you to change the internal
schema somewhat as long as you honor the agreed "interface" of the
view...

Regards,
Ed Loehr

pgsql-general by date:

Previous
From: ashley
Date:
Subject: Mac
Next
From: "Brosnahan, Richard"
Date:
Subject: 7.0.3 on Mac OS X?