Need indexes on empty tables for good performance ? - Mailing list pgsql-performance

From Lenard, Rohan (Rohan)
Subject Need indexes on empty tables for good performance ?
Date
Msg-id 2773CAC687FD5F4689F526998C7E4E5F43F392@au3010avexu1.global.avaya.com
Whole thread Raw
Responses Re: Need indexes on empty tables for good performance ?
Re: Need indexes on empty tables for good performance ?
Re: Need indexes on empty tables for good performance ?
List pgsql-performance
I've read that indexes aren't used for COUNT(*) and I've noticed (7.3.x) with EXPLAIN that indexes never seem to be used on empty tables - is there any reason to have indexes on empty tables, or will postgresql never use them.
 
This is not as silly as it sounds - with table inheritance you might have table children with the data and a parent that is empty.  It'd be nice to make sure postgresql knows to never really look at the parent - especially is you don't know the names of all the children ..
 
Thoughts ?
 
thx,
  Rohan

pgsql-performance by date:

Previous
From: "tobbe"
Date:
Subject: Performance for relative large DB
Next
From: "tobbe"
Date:
Subject: Re: Performance for relative large DB