Re: Indexes and inheritance

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Indexes and inheritance
Date: 2006-03-24 17:32:37
Message-ID: 200603240932.37440@hal.medialogik.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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.

--
Alan

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message me 2006-03-24 18:36:34 help with a view (join-query)
Previous Message Pierre Thibaudeau 2006-03-24 05:42:36 Indexes and inheritance