Re: Must I create an index for child table if master table have one? - Mailing list pgsql-general

From David G. Johnston
Subject Re: Must I create an index for child table if master table have one?
Date
Msg-id CAKFQuwaMgxosLfNsTgMBk5PRJhT=+uabdpLs7hOBOOgyfFEdCw@mail.gmail.com
Whole thread Raw
In response to Must I create an index for child table if master table have one?  (Edmundo Robles <edmundo@sw-argos.com>)
Responses Re: Must I create an index for child table if master table have one?  (Melvin Davidson <melvin6925@gmail.com>)
List pgsql-general
On Tue, Nov 8, 2016 at 11:08 AM, Edmundo Robles <edmundo@sw-argos.com> wrote:
Hi!

 i have a  simple question,  if the master table have an index, must  i have create  the same index in a child  table?
what is  the best practice  for  indexes  in table partition ?

Indexes are self-contained within the physical table on which they are defined.  The index on the master contains no rows that are present in the child table.

David J.​

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: PHP-Shop with PostgreSQL
Next
From: Melvin Davidson
Date:
Subject: Re: Must I create an index for child table if master table have one?