Re: To use a VIEW or not to use a View.....

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Ries van Twisk <ries(at)jongert(dot)nl>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: To use a VIEW or not to use a View.....
Date: 2003-01-22 15:48:10
Message-ID: 20030122154810.GA5475@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Jan 22, 2003 at 16:12:52 +0100,
Ries van Twisk <ries(at)jongert(dot)nl> wrote:
> Dear PostgreSQL users,
>
> I understand that when a frontend accesses a VIEW that PostgreSQL cannot use
> a index on that view.
> For example when I do this: SELECT * FROM full_cablelist WHERE
> projectocode=5; Correct?

For the most part views work like macros for selects and indexes should be
usable.
You can test this yourself using EXPLAIN to compare plans both using and
not using a view on a table.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2003-01-22 16:10:04 Re: To use a VIEW or not to use a View.....
Previous Message Jan Wieck 2003-01-22 15:46:54 Re: To use a VIEW or not to use a View.....