Re: To use a VIEW or not to use a View..... - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: To use a VIEW or not to use a View.....
Date
Msg-id 20030122154810.GA5475@wolff.to
Whole thread Raw
In response to To use a VIEW or not to use a View.....  ("Ries van Twisk" <ries@jongert.nl>)
List pgsql-sql
On Wed, Jan 22, 2003 at 16:12:52 +0100, Ries van Twisk <ries@jongert.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.


pgsql-sql by date:

Previous
From: "Ries van Twisk"
Date:
Subject: To use a VIEW or not to use a View.....
Next
From: Jan Wieck
Date:
Subject: Re: To use a VIEW or not to use a View.....