From: Bruno Wolff III <bruno@wolff.to>
To: Ries van Twisk <ries@jongert.nl>
Cc: pgsql-sql@postgresql.org
Subject: Re: To use a VIEW or not to use a View.....
Date: Wed, 22 Jan 2003 09:48:10 -0600
Message-ID: <20030122154810.GA5475@wolff.to> (raw)
In-Reply-To: <002001c2c228$bc3d2780$f100000a@IT001>
References: <002001c2c228$bc3d2780$f100000a@IT001>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bruno@wolff.to, ries@jongert.nl
Subject: Re: To use a VIEW or not to use a View.....
In-Reply-To: <20030122154810.GA5475@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox