From: Bruce Momjian <bruce@momjian.us>
To: mnikulyak@gmail.com
Cc: pgsql-docs@postgresql.org
Subject: Re: Excluding common values from the index
Date: Thu, 16 Mar 2017 16:12:14 -0400
Message-ID: <20170316201214.GB32733@momjian.us> (raw)
In-Reply-To: <20170311230031.1429.23255@wrigleys.postgresql.org>
References: <20170311230031.1429.23255@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>
On Sat, Mar 11, 2017 at 11:00:31PM +0000, mnikulyak@gmail.com wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/9.6/static/indexes-partial.html
> Description:
>
> Rather than a report of an error, this letter is a suggestion of improvement
> of PostgreSQL.
>
> As per page https://www.postgresql.org/docs/9.6/static/indexes-partial.html,
> PostgreSQL avoids using indices when retrieving common values.
>
> Then, maybe, during the construction of an index, PostgreSQL should be
> detecting such common values, and exclude them from the index automatically.
That is an interesting idea, but what happens if the table changes and
those values become rare? How would we adjust for that? What if the
table is empty when the index is created? How would we detect common
values?
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
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-docs@postgresql.org
Cc: bruce@momjian.us, mnikulyak@gmail.com
Subject: Re: Excluding common values from the index
In-Reply-To: <20170316201214.GB32733@momjian.us>
* 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