Re: Canceling REINDEX safe?

From: Shreeyansh Dba <shreeyansh2014(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jan-Peter Seifert <Jan-Peter(dot)Seifert(at)gmx(dot)de>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Canceling REINDEX safe?
Date: 2015-03-12 11:53:55
Message-ID: CAGDYbUMs7tT=xxs1VprPk-SqmKOtsn-3gL=0Vv9uBwb=1NTt+g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,
There will be some problem to the index as
REINDEX is a maintenance operation and generally done when index is
corrupted, bloated etc.
REINDEX is a locking operation hence it is risky to perform on a busy table,
I suggest in case of index corruption instead of reindexing you can :
create an index concurrently and remove the old index in off peak hours.

Thanks & Regards,
Ajinkya Bangale
Database Administrator
ajinkya(dot)bangale(at)shreeyansh(dot)com
Office: +919552687400/8400
www.shreeyansh.com

On Tue, Feb 17, 2015 at 8:43 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> "Jan-Peter Seifert" <Jan-Peter(dot)Seifert(at)gmx(dot)de> writes:
> > I wonder whether canceling a REINDEX of a database is safe ( PostgreSQL
> v9.2.7 ).
>
> Sure. If it weren't cancel-safe, it wouldn't be crash-safe either.
>
> regards, tom lane
>
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Rossi, Maria 2015-03-12 15:29:15 Re: Errorlog empty
Previous Message Shreeyansh Dba 2015-03-12 05:28:22 Re: Relocated Postgres