From: Richard Huxton <dev@archonet.com>
To: Keith Gray <keith@heart.com.au>
To: PostgreSQL <pgsql-sql@postgresql.org>
Subject: Re: Index on View ?
Date: Thu, 5 Apr 2001 09:45:59 +0100
Message-ID: <012a01c0bdac$d7864760$1001a8c0@archonet.com> (raw)
References: <3ACBF22F.33AA9C36@heart.com.au>
From: "Keith Gray" <keith@heart.com.au>
> Is it possible (feasible) to create an index on a view.
>
> We have a large table and a defined sub-set (view)
> from this table, would it be possible to keep an index
> of the sub-set.
I don't think so - the view is basically just a select rule that rewrites
queries based on it.
Indexes on underlying tables should be used though. Difficult to suggest
what indices you might need without knowing the view/tables/queries
involved.
- Richard Huxton
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, keith@heart.com.au
Subject: Re: Index on View ?
In-Reply-To: <012a01c0bdac$d7864760$1001a8c0@archonet.com>
References: <3ACBF22F.33AA9C36@heart.com.au> <012a01c0bdac$d7864760$1001a8c0@archonet.com>
* 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