Re: can't reindex a couple of tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brendan Duddridge <brendan(at)clickspace(dot)com>
Cc: PostgreSQL-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: can't reindex a couple of tables
Date: 2006-05-05 20:06:24
Message-ID: 27722.1146859584@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Brendan Duddridge <brendan(at)clickspace(dot)com> writes:
> They both have a click_count column that we update with "update
> attribute set click_count = click_count + 1;" and the same for the
> attribute_value table. Postgres is getting hung up on any transaction
> that attempts to update the click_count. I've vacuum analyzed both
> tables and that worked fine. Now I tried to reindex them and Postgres
> is just locking up and never finishing. I had to cancel the reindex.

I'd wonder about some open transaction with a weak lock on these
tables. REINDEX needs exclusive lock, vacuum doesn't.
Look in pg_locks ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brendan Duddridge 2006-05-05 20:40:45 Re: can't reindex a couple of tables
Previous Message Tom Lane 2006-05-05 20:04:08 Re: Syntax problem for a newbie