From: Tomasz Ostrowski <tometzky+pg@ato.waw.pl>
To: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Cc: Greg Stark <stark@mit.edu>
Subject: Re: Invalid indexes should not consume update overhead
Date: Sun, 17 Jul 2016 13:41:52 +0200
Message-ID: <578B6F00.3080104@ato.waw.pl> (raw)
In-Reply-To: <CAM-w4HN00MFSMwi+CF-Z9TFG4Xj8gq35zvN0yD=XT-X9y0z0Wg@mail.gmail.com>
References: <8b57a306-7951-8442-df16-8c581d61b4e6@ato.waw.pl>
<CAM-w4HN00MFSMwi+CF-Z9TFG4Xj8gq35zvN0yD=XT-X9y0z0Wg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 2016-07-17 02:09, Greg Stark wrote:
> The real solution imho is to actually clean up failed index builds when
> a build fails.
That wouldn't solve my problem, which is that I need a way to disable
indexes before large update. I believe (but I'm not sure) that Oracle
has this concept:
ALTER INDEX [INDEX_NAME] UNUSABLE;
Maybe, if an index is in invalid state, update can check which part of
table is already indexed and which part is not. Then it would only
update indexes of this already reindexed part of table. This way
purposely invalid indexes could be marked valid for blocks numbers less
than 0.
This might actually be a win during concurrent index creation as
concurrent updates would not have to update index for all updated rows.
But I don't know if it's feasible from concurrency perspective at all.
Regards,
Tomasz "Tometzky" Ostrowski
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: tometzky+pg@ato.waw.pl, stark@mit.edu
Subject: Re: Invalid indexes should not consume update overhead
In-Reply-To: <578B6F00.3080104@ato.waw.pl>
References: <8b57a306-7951-8442-df16-8c581d61b4e6@ato.waw.pl> <CAM-w4HN00MFSMwi+CF-Z9TFG4Xj8gq35zvN0yD=XT-X9y0z0Wg@mail.gmail.com> <578B6F00.3080104@ato.waw.pl>
* 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