Re: are views obsolete ? - Mailing list pgsql-general

From Tom Lane
Subject Re: are views obsolete ?
Date
Msg-id 28945.1053443208@sss.pgh.pa.us
Whole thread Raw
In response to Re: are views obsolete ?  (Gianni Mariani <gianni@mariani.ws>)
List 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 by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: add a constraint to specify NOT NULL values
Next
From: Tom Lane
Date:
Subject: Re: INSERT/UPDATE/DELETE Views