Re: Indexes and Inheritance - Mailing list pgsql-general

From Erik Jones
Subject Re: Indexes and Inheritance
Date
Msg-id 45788CB8.8080804@myemma.com
Whole thread Raw
In response to Indexes and Inheritance  (Keary Suska <hierophant@pcisys.net>)
Responses Re: Indexes and Inheritance  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Keary Suska wrote:
> Thanks to Erik, Jeff, & Richard for their help.
>
> I have a further inheritance question: do child tables inherit the indexes
> created on parent columns, or do they need to be specified separately for
> each child table? I.e., created via CREATE INDEX.
>
> I assume at least that the implicit index created by a primary key would
> inherit, but I don't know if that assumption is safe.
>
> Thanks,
>
> Keary Suska
> Esoteritech, Inc.
> "Demystifying technology for your home or business"
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faq
>
No.  In addition, child tables do not inherit primary keys.  Think of it
like this: if you did a \d to describe a table that you were going to
use as a parent table in an inheritance chain, the child table would get
everything in the table listing the columns but nothing beneath the table.

--
erik jones <erik@myemma.com>
software development
emma(r)


pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Vote for your favorite database
Next
From: Jeff Davis
Date:
Subject: Re: Online index builds