Re: Indexes on inheriting tables

From: Shoaib Mir <shoaibmir(at)gmail(dot)com>
To: Toby Corkindale <toby(dot)corkindale(at)strategicdata(dot)com(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Indexes on inheriting tables
Date: 2011-08-25 01:34:27
Message-ID: CABAdwW1JGPdrJdPAO6Pt43Su381bseTXEkpaUzY=LAkfvf=txA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Aug 25, 2011 at 11:17 AM, Toby Corkindale <
toby(dot)corkindale(at)strategicdata(dot)com(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Toby Corkindale 2011-08-25 01:57:03 Re: Indexes on inheriting tables
Previous Message Toby Corkindale 2011-08-25 01:17:57 Indexes on inheriting tables