Re: Invalid indexes should not consume update overhead - Mailing list pgsql-bugs

From Peter Geoghegan
Subject Re: Invalid indexes should not consume update overhead
Date
Msg-id CAM3SWZRKUqdPeh5aGGg6BydBWxFL+fySmx5xdoWzCUBCCD5W2Q@mail.gmail.com
Whole thread Raw
In response to Re: Invalid indexes should not consume update overhead  ("Rader, David" <davidr@openscg.com>)
Responses Re: Invalid indexes should not consume update overhead
List pgsql-bugs
On Sun, Jul 17, 2016 at 1:42 PM, Rader, David <davidr@openscg.com> wrote:
> For example, in SQL Server you can "alter index disable". If you are about
> to do a lot of bulk operations. But there is no "re-enable"; instead you
> have to "alter index rebuild" because as has been said on this thread you
> don't know what has changed since the disable.
>
> Basically this is very similar to dropping and recreating indexes around
> bulk loads/updates.

That seems pretty pointless. Why not actually drop the index, then?

The only reason I can think of is that there is value in representing
that indexes should continue to have optimizer statistics (that would
happen for expression indexes in Postgres) without actually paying for
the ongoing maintenance of the index during write statements. Even
that seems like kind of a stretch, though.

--
Peter Geoghegan

pgsql-bugs by date:

Previous
From: "Rader, David"
Date:
Subject: Re: Invalid indexes should not consume update overhead
Next
From: "Rader, David"
Date:
Subject: Re: Invalid indexes should not consume update overhead