Re: Indexes and inheritance

From: "Pierre Thibaudeau" <pierdeux(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Indexes and inheritance
Date: 2006-03-24 19:06:14
Message-ID: 74b035bb0603241106w4be5ccc5j@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

2006/3/24, Alan Hodgson <ahodgson(at)simkin(dot)ca>:
>
> On March 23, 2006 09:42 pm, "Pierre Thibaudeau" <pierdeux(at)gmail(dot)com>
> wrote:
> > I have a "daughter" table that inherits from a "mother" table. The
> > mother table has an index on column A. Would there be any point on
> > creating an index on column A of the daughter? If so, in what
> > circumstances?
>
> Indexes are not inherited, so in fact you have to create the index on
> column A of the daughter if you want the expected behaviour.

Ah, thank you.

So I suppose, the new index on the daughter is akin to a partial index on
the mother, although one that couldn't be used while searching the mother...

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Alan Hodgson 2006-03-24 19:26:08 Re: Indexes and inheritance
Previous Message me 2006-03-24 18:36:34 help with a view (join-query)