From: Tory M Blue <tmblue@gmail.com>
To: Віталій Тимчишин <tivv00@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Index bloat, reindex weekly, suggestions etc?
Date: Mon, 3 Nov 2008 17:30:51 -0800
Message-ID: <8a547c840811031730g63edfd2dse6a3a369eefe1700@mail.gmail.com> (raw)
In-Reply-To: <331e40660810180000x63b7116dkb2bfbebac4787c2@mail.gmail.com>
References: <8a547c840810170905m7323dbd8x90de7dd004abc7d4@mail.gmail.com>
<331e40660810180000x63b7116dkb2bfbebac4787c2@mail.gmail.com>
On Fri, Oct 17, 2008 at 11:00 PM, Віталій Тимчишин <tivv00@gmail.com> wrote:
>
>
> 2008/10/17 Tory M Blue <tmblue@gmail.com>
>>
>> The real issue is my index growth and my requirement for weekly
>> re-indexing (which blocks and therefore is more or less a manual
>> process in a live production environment (fail over, changing vips
>> etc).
>
> BTW: Can't you simply recreate indexes online? Since postgresql accepts
> multiple indexes of same definition, this may look like:
> 1) create index concurrently index_alt
> 2) analyze index_alt
> 3) drop index_orig
> Both index_alt and index_orig having same definition
Sorry for the late response. After some testing, this is in fact a
solution that will and does work. It's really much simpler than doing
switch overs and taking systems down to re index.
Thanks for the clue stick over the head, I know we looked into this in
the past and it was a non starter, but it seems to be working just
fine!!
Thanks
Tory.
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: tmblue@gmail.com, tivv00@gmail.com
Subject: Re: Index bloat, reindex weekly, suggestions etc?
In-Reply-To: <8a547c840811031730g63edfd2dse6a3a369eefe1700@mail.gmail.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