Re: UNION within VIEW workarounds?

Поиск
Список
Период
Сортировка
От Ed Loehr
Тема Re: UNION within VIEW workarounds?
Дата
Msg-id 3A303D1E.941CCAF9@austin.rr.com
обсуждение исходный текст
Ответ на UNION within VIEW workarounds?  (Ed Loehr <eloehr@austin.rr.com>)
Ответы Re: UNION within VIEW workarounds?  (hubert depesz lubaczewski <depesz@depesz.pl>)
Список 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 по дате отправления:

Предыдущее
От: ashley
Дата:
Сообщение: Mac
Следующее
От: "Brosnahan, Richard"
Дата:
Сообщение: 7.0.3 on Mac OS X?