From: Kevin Grittner <kgrittn@ymail.com>
To: stormbyte@gmail.com <stormbyte@gmail.com>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #8447: With table inheritance, indexes seems to be ignored when looking over indexed fields in base table
Date: Thu, 12 Sep 2013 08:19:46 -0700 (PDT)
Message-ID: <1378999186.30712.YahooMailNeo@web162902.mail.bf1.yahoo.com> (raw)
In-Reply-To: <E1VK7Xo-0003tv-Py@wrigleys.postgresql.org>
References: <E1VK7Xo-0003tv-Py@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
"stormbyte@gmail.com" <stormbyte@gmail.com> wrote:
> [ Seq Scan is used on empty relation, rather than Index Scan ]
> This is not the expected result. [ ... ] it is still using
> sequential scan rather than what would be expected: Index Scan
This is not a bug.
If statistics indicate that all rows can be accessed with one page
access (to the heap) why should it use an index?
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: kgrittn@ymail.com, stormbyte@gmail.com
Subject: Re: BUG #8447: With table inheritance, indexes seems to be ignored when looking over indexed fields in base table
In-Reply-To: <1378999186.30712.YahooMailNeo@web162902.mail.bf1.yahoo.com>
References: <E1VK7Xo-0003tv-Py@wrigleys.postgresql.org> <1378999186.30712.YahooMailNeo@web162902.mail.bf1.yahoo.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