Re: Index on View ?

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Index on View ?
Дата
Msg-id 012a01c0bdac$d7864760$1001a8c0@archonet.com
обсуждение исходный текст
Ответ на Index on View ?  (Keith Gray <keith@heart.com.au>)
Список pgsql-sql
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



В списке pgsql-sql по дате отправления:

Предыдущее
От: Peter Galbavy
Дата:
Сообщение: Re: performance of functions - or rather lack of it
Следующее
От: Loïc Bourgeois
Дата:
Сообщение: SELECT ... FOR UPDATE