From: Andres Freund <andres@2ndquadrant.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Jim Nasby <jim@nasby.net>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Peter Geoghegan <peter@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [PERFORM] encouraging index-only scans
Date: Tue, 11 Feb 2014 19:31:03 +0100
Message-ID: <20140211183103.GJ15246@awork2.anarazel.de> (raw)
In-Reply-To: <20140211182319.GF2289@momjian.us>
References: <5238854F.5040708@nasby.net>
<20130917231050.GD29545@awork2.anarazel.de>
<CA+TgmoZQyt253OA_ssD6OVs8o0-RkRz3eK6qZz3Utwp-2QVf6A@mail.gmail.com>
<20140201032207.GD31141@momjian.us>
<CA+TgmoYOAzNKWKdkNcq50MFQKdgSt1ESR6zxb8XKCiNO6YBX2A@mail.gmail.com>
<20140211155607.GB2289@momjian.us>
<CA+TgmobeczQK0LhgVz_bSs7M4iTbCP=sfK8=6yDuCpwtOiuCCw@mail.gmail.com>
<20140211171213.GE2289@momjian.us>
<20140211175410.GF31598@awork2.anarazel.de>
<20140211182319.GF2289@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 2014-02-11 13:23:19 -0500, Bruce Momjian wrote:
> On Tue, Feb 11, 2014 at 06:54:10PM +0100, Andres Freund wrote:
> > On 2014-02-11 12:12:13 -0500, Bruce Momjian wrote:
> > > Yes, that pretty much sums it up. We introduced index-only scans in 9.2
> > > (2012) but they still seem to be not usable for insert-only workloads
> > > two years later. Based on current progress, it doesn't look like this
> > > will be corrected until 9.5 (2015). I am kind of confused why this has
> > > not generated more urgency.
> >
> > I think this largely FUD. They are hugely beneficial in some scenarios
> > and less so in others. Just like lots of other features we have.
>
> I don't understand. Index-only scans are known to have benefits --- if
> an insert-only workload can't use that, why is that acceptable? What is
> fear-uncertainty-and-doubt about that? Please explain.
Uh, for one, insert only workloads certainly aren't the majority of
usecases. Ergo there are plenty of cases where index only scans work out
of the box.
Also, they *do* work for insert only workloads, you just either have to
wait longer, or manually trigger VACUUMs. That's a far cry from not
being usable.
I am not saying it shouldn't be improved, I just don't see the point of
bringing it up while everyone is busy with the last CF and claiming it
is unusable and that stating that it is surprisising that nobody really
cares.
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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: andres@2ndquadrant.com, bruce@momjian.us, robertmhaas@gmail.com, jim@nasby.net, alvherre@2ndquadrant.com, peter@2ndquadrant.com, tgl@sss.pgh.pa.us, andrew@dunslane.net, pgsql-hackers@postgresql.org
Subject: Re: [PERFORM] encouraging index-only scans
In-Reply-To: <20140211183103.GJ15246@awork2.anarazel.de>
* 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