Re: are views obsolete ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gianni Mariani <gianni(at)mariani(dot)ws>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: are views obsolete ?
Date: 2003-05-20 15:06:48
Message-ID: 28945.1053443208@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gianni Mariani <gianni(at)mariani(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-05-20 15:25:24 Re: INSERT/UPDATE/DELETE Views
Previous Message nelma 2003-05-20 14:58:46 cursor