pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Travers <chris@travelamericas.com>
To: Lenard, Rohan (Rohan) <rlenard@avaya.com>
Cc: Thomas F. O'Connell <tfo@sitening.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Need indexes on empty tables for good performance ?
Date: Tue, 30 Aug 2005 10:43:05 -0700
Message-ID: <43149AA9.4080902@travelamericas.com> (raw)
In-Reply-To: <2773CAC687FD5F4689F526998C7E4E5F489B7B@au3010avexu1.global.avaya.com>
References: <2773CAC687FD5F4689F526998C7E4E5F489B7B@au3010avexu1.global.avaya.com>

Lenard, Rohan (Rohan) wrote:

> Actually the indexes on the child table do seem to get used - I just 
> wanted to make sure there was no penalty not having indexes on the 
> empty parent tables.
>  
> You are right - the parent is the best way to get at the unknown 
> children ...

Indexes are created in the inheritance process, iirc.  However, index 
entries are not inherited, which means that index-based unique 
constraints don't properly get inherited.

Best Wishes,
Chris Travers
Metatron Technology Consulting



view thread (6+ messages)

Message-ID: <43149AA9.4080902@travelamericas.com>
Permalink:  ../43149AA9.4080902@travelamericas.com/
Also on:    postgresql.org/message-id/43149AA9.4080902@travelamericas.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: chris@travelamericas.com, rlenard@avaya.com, tfo@sitening.com
  Subject: Re: Need indexes on empty tables for good performance ?
  In-Reply-To: <43149AA9.4080902@travelamericas.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox