Re: Reindex does not finish 8.2.6

From: Clodoaldo <clodoaldo(dot)pinto(dot)neto(at)gmail(dot)com>
To: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>
Cc: "Pavan Deolasee" <pavan(dot)deolasee(at)gmail(dot)com>, "PostgreSQL - General ML" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Reindex does not finish 8.2.6
Date: 2008-03-14 22:58:32
Message-ID: a595de7a0803141558o66052080w849eb9287f1d7f01@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2008/3/14, Alvaro Herrera <alvherre(at)commandprompt(dot)com>:
> Clodoaldo escribió:
>
> > 2008/3/14, Alvaro Herrera <alvherre(at)commandprompt(dot)com>:
>
>
> > > A quick look into pg_locks should tell you if it's blocking.
> >
> > pg_prepared_xacts is empty and pg_locks has 288 rows:
> >
> > # select locktype, mode, count(*) as total
> > from pg_locks group by locktype, mode;
> > locktype | mode | total
> > ---------------+------------------+-------
> > transactionid | ExclusiveLock | 30
> > relation | RowExclusiveLock | 2
> > relation | AccessShareLock | 256
> > (3 rows)
>
>
> How many of them have granted=false?

=> select locktype, mode, granted, count(*) as total
from pg_locks group by locktype, mode, granted;
locktype | mode | granted | total
---------------+-----------------+---------+-------
relation | AccessShareLock | t | 112
transactionid | ExclusiveLock | t | 17
(2 rows)

Regards, Clodoaldo Pinto Neto

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-03-14 23:12:11 Re: shared memory/max_locks_per_transaction error
Previous Message Tom Lane 2008-03-14 22:57:51 Re: How to silence psql notices, warnings, etc.?