Re: are views obsolete ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: are views obsolete ?
Date: 2003-05-20 00:20:29
Message-ID: 24821.1053390029@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net> writes:
> given the power of SETOF/ROWTYPE functions etc are select-only
> views becoming obsolete/redundant ?

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. For example, in
SELECT * FROM my_srf() WHERE foo
there's no way to push the "foo" condition down inside my_srf().

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-05-20 00:30:08 Re: pg_atoi problem with 7.3.2
Previous Message Joseph Shraibman 2003-05-20 00:18:56 Re: ERROR: Memory exhausted in AllocSetAlloc(188)