Re: WARM and indirect indexes

From: Craig Ringer <craig(dot)ringer(at)2ndquadrant(dot)com>
To: Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Álvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>
Subject: Re: WARM and indirect indexes
Date: 2017-01-11 14:05:05
Message-ID: CAMsr+YH_mSsrJaxscFhpwA=dkWmo0nGDsAQ__u1j+ko4+6Gf2w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 11 Jan. 2017 21:29, "Andrew Dunstan" <andrew(dot)dunstan(at)2ndquadrant(dot)com>
wrote:

On 01/10/2017 09:25 PM, Bruce Momjian wrote:

> I am not saying we shouldn't do it, but I am afraid that the complexity
> in figuring out when to use indirect indexes, combined with the number
> of users who will try them, really hurts its inclusion.
>
>

I think you're making this out to be far more complex than it really is.
You could argue the same about a great many features. Both of these
features have upsides and downsides.

Obviously we need to get some benchmarks to we can quantify the effects,
but this complexity argument doesn't convince me at all. After all, nobody
has to use indirect indexes.

Another consideration is ... say we decide it didn't work out in the real
world and doesn't see enough use, has needed more maintenance than
expected, etc. Unlikely IMO but allow that for the sake of argument.

Well... this is something we can rip out.

It's not something that'll deeply and permanently change fundamentals of
the on-disk heap representation. It doesn't add new data types we can't
easily remove. It's... just not that intrusive. Especially from a
UI/application PoV.

So our *risk* here isn't that great either. Our commitment doesn't have to
be total. There aren't semantic differences that we will break apps by
undoing if we decided to change how they worked behind the scenes, drop the
idea entirely, etc.

Sure, we'll have them in supported releases for a while even in the VERY
unlikely event that happens. But it's not like there's much code churn
there, much cost to a little used feature.

All that said, I'm far from convinced this will be niche or little used.
Nor does it look hugely intrusive or likely to be a maintenance burden. So
the cost side of the cost/benefit/risk analysis isn't exactly overwhelming.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Marko Tiikkaja 2017-01-11 14:08:30 Re: plpgsql - additional extra checks
Previous Message Pavel Stehule 2017-01-11 13:54:35 plpgsql - additional extra checks