pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Jo Tzschenscher <hellojo180@yahoo.es>
To: Michael Paquier <michael@paquier.xyz>
To: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: PostgreSQL Bugs <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15987: Improve REINDEX of all indexes of a table at once
Date: Sun, 1 Sep 2019 11:18:33 +0000 (UTC)
Message-ID: <1437865225.1016949.1567336713777@mail.yahoo.com> (raw)
In-Reply-To: <alpine.DEB.2.21.1909011143230.29429@lancre>
References: <15987-7d85883d9674a15e@postgresql.org>
<20190901043534.GA3190@paquier.xyz>
<alpine.DEB.2.21.1909011143230.29429@lancre>
Totally correct, Fabien!
En domingo, 1 de septiembre de 2019 11:45:57 CEST, Fabien COELHO <coelho@cri.ensmp.fr> escribió:
>> one of the indexes. If the same columns occur in more than 1 index you need
>> to read them only once. Then you run 1 and only 1 full table scan (FTS), and
>> with the data of the cursor you add an entry into each of the indexes to
>> rebuild. With just 1 FTS you could create all the indexes at once, and
>> speeding up a full reindex task to use little more than the time the FTS
>> takes.
>
> I don't quite understand your request. You have REINDEX TABLE which
> is able to reindex all the indexes of a table one by one, […]
I understood the request as the scan should be factored out, so that
reindexing a table with multiple indexes would cost only one seq scan.
--
Fabien.
view thread (5+ messages) latest in thread
Message-ID: <1437865225.1016949.1567336713777@mail.yahoo.com> Permalink: ../1437865225.1016949.1567336713777@mail.yahoo.com/ Also on: postgresql.org/message-id/1437865225.1016949.1567336713777@mail.yahoo.com ·
reply
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: hellojo180@yahoo.es, michael@paquier.xyz, coelho@cri.ensmp.fr Subject: Re: BUG #15987: Improve REINDEX of all indexes of a table at once In-Reply-To: <1437865225.1016949.1567336713777@mail.yahoo.com> References: <15987-7d85883d9674a15e@postgresql.org> <20190901043534.GA3190@paquier.xyz> <alpine.DEB.2.21.1909011143230.29429@lancre> <1437865225.1016949.1567336713777@mail.yahoo.com> * 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