Re: Must I create an index for child table if master table have one?

Поиск
Список
Период
Сортировка
От Melvin Davidson
Тема Re: Must I create an index for child table if master table have one?
Дата
Msg-id CANu8Fiztk_F3vyDAvuJz-v4G+8sHVPaxbyuP0pR+bVKz1DU7CQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Must I create an index for child table if master table have one?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Must I create an index for child table if master table have one?  (Melvin Davidson <melvin6925@gmail.com>)
Список pgsql-general


On Tue, Nov 8, 2016 at 1:33 PM, David G. Johnston <david.g.johnston@gmail.com> wrote:
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.​


>Indexes are self-contained within the physical table on which they are defined
IOW, yes.

--
Melvin Davidson
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.

В списке pgsql-general по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Must I create an index for child table if master table have one?
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: Must I create an index for child table if master table have one?