Re: deadlock while re-indexing table

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Dave Cramer <pg(at)fastcrypt(dot)com>, Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: deadlock while re-indexing table
Date: 2008-02-12 15:45:02
Message-ID: 20080212154502.GM14683@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:

> > I don't find this very surprising ... I would suggest using "reindex
> > index" for each index instead. I'm not sure if REINDEX TABLE is
> > supposed to be deadlock-free.
>
> It's not guaranteed to be so, but I'd think simple cases would be
> okay.

Can we rework REINDEX TABLE so that it processes each index on its own
transaction?

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-02-12 15:49:00 Re: deadlock while re-indexing table
Previous Message Chander Ganesan 2008-02-12 15:38:45 Re: Some Autovacuum Questions