Re: Indexes on inheriting tables

Поиск
Список
Период
Сортировка
От Shoaib Mir
Тема Re: Indexes on inheriting tables
Дата
Msg-id CABAdwW1JGPdrJdPAO6Pt43Su381bseTXEkpaUzY=LAkfvf=txA@mail.gmail.com
обсуждение исходный текст
Ответ на Indexes on inheriting tables  (Toby Corkindale <toby.corkindale@strategicdata.com.au>)
Ответы Re: Indexes on inheriting tables
Список pgsql-general
On Thu, Aug 25, 2011 at 11:17 AM, Toby Corkindale <toby.corkindale@strategicdata.com.au> wrote:

Do I need to make sure I re-create every index on every child table I create?
That would be.. annoying, at best.

Is there a way to enable inheritance of indexes too?


You do not need an index on the master table so create indexes on child tables only. This way you are avoiding big index scans and only looking at the index on the data you are interested in (child table).

cheers,
Shoaib

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

Предыдущее
От: Toby Corkindale
Дата:
Сообщение: Indexes on inheriting tables
Следующее
От: Toby Corkindale
Дата:
Сообщение: Re: Indexes on inheriting tables