From: Tom Lane <tgl@sss.pgh.pa.us>
To: Anastasia Lubennikova <a.lubennikova@postgrespro.ru>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: CREATE INDEX ... INCLUDING (column[, ...])
Date: Fri, 08 Apr 2016 15:22:15 -0400
Message-ID: <26649.1460143335@sss.pgh.pa.us> (raw)
In-Reply-To: <1460141998856-5897721.post@n5.nabble.com>
References: <E1aoZXr-00038W-EP@gemulon.postgresql.org>
<9832.1460140193@sss.pgh.pa.us>
<CA+Tgmoa2Ng37heGyn3JhQc5vZQWnhbj7TettL=25b308sjK5Sw@mail.gmail.com>
<CAM3SWZSK60bBgGZZRDLxmJs0MXms0x91aXJ_gjWU3w6im23Xjw@mail.gmail.com>
<1460141998856-5897721.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Anastasia Lubennikova <a.lubennikova@postgrespro.ru> writes:
> The answer to the question about expressions is quite simple - they are not
> supported by index-only scan, so having them in covering index now is just
> wasting of disc space.
Well, it's true that the planner can't handle them easily in IOS, but
your claim that that makes them useless is exactly backwards. As an
example, consider an index on x with f(x) as an extra column. The
planner *could* make use of f(x), at least in simple cases, because
the presence of x would bypass the lack of intelligence in
check_index_only().
In any case, work is afoot to fix that planner restriction, so I do
not think we should add features that expect it to be a permanent
part of the landscape.
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, a.lubennikova@postgrespro.ru
Subject: Re: pgsql: CREATE INDEX ... INCLUDING (column[, ...])
In-Reply-To: <26649.1460143335@sss.pgh.pa.us>
References: <E1aoZXr-00038W-EP@gemulon.postgresql.org> <9832.1460140193@sss.pgh.pa.us> <CA+Tgmoa2Ng37heGyn3JhQc5vZQWnhbj7TettL=25b308sjK5Sw@mail.gmail.com> <CAM3SWZSK60bBgGZZRDLxmJs0MXms0x91aXJ_gjWU3w6im23Xjw@mail.gmail.com> <1460141998856-5897721.post@n5.nabble.com> <26649.1460143335@sss.pgh.pa.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