Re: are views obsolete ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: are views obsolete ?
Дата
Msg-id 28945.1053443208@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: are views obsolete ?  (Gianni Mariani <gianni@mariani.ws>)
Список pgsql-general
Gianni Mariani <gianni@mariani.ws> writes:
> Tom Lane wrote:
>> Not hardly.  The planner can optimize queries involving views, since it
>> can see what's inside the view definition.  SRFs are black boxes and
>> thus not optimizable.

> Does that include SQL functions ?

Hm.  A SQL function that contains a single SELECT could probably be
inlined, but it's not at the moment.  CVS tip does inline SQL functions
that return scalars, but not sets.  Good idea ...

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: add a constraint to specify NOT NULL values
Следующее
От: Tom Lane
Дата:
Сообщение: Re: INSERT/UPDATE/DELETE Views