Skip site navigation (1) Skip section navigation (2)

Re: ALTER table taking ages...

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: ALTER table taking ages...
Date: 2004-02-28 12:32:34
Message-ID: c1q1p4$f2d$1@floppy.pyrenet.fr (view raw or flat)
Thread:
Lists: pgsql-admin
Rajesh Kumar Mallah wrote:
> 
> Greetings!
> 
> It takes ages to drop a constraint from one of my tables
> [ table details at the end ] I cannot insert into it also.
> 
> I know  pg_dump is not running and no other query is accessing the table.
>  Can anyone help me debugging this problem? Can anyone explain the
> following entires in pg_locks where relation and database
> are both null.
> 
> tradein_clients=# SELECT * from pg_locks where mode='ExclusiveLock' and 
> granted is true;
> +----------+----------+-------------+-------+---------------+---------+
> | relation | database | transaction |  pid  |     mode      | granted |
> +----------+----------+-------------+-------+---------------+---------+
> |     NULL |     NULL |   116230313 | 19898 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230309 | 24779 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230267 | 24780 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230303 | 24764 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230302 | 24751 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230308 | 24767 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230274 | 24761 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230306 | 24752 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230312 | 23222 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230290 | 24768 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230292 | 24776 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230297 | 24753 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230295 | 24765 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230152 | 24096 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230311 | 24769 | ExclusiveLock | t       |
> |     NULL |     NULL |   116194826 | 23048 | ExclusiveLock | t       |
> |     NULL |     NULL |   116230307 | 24758 | ExclusiveLock | t       |
> +----------+----------+-------------+-------+---------------+---------+
> (17 rows)

May I know how you obtain this kind of output ( biq square around
results ) ?



Regards
Gaetano Mendola


In response to

pgsql-admin by date

Next:From: Tom LaneDate: 2004-02-28 15:39:40
Subject: Re: [ADMIN] Schema comparisons
Previous:From: Tsirkin EvgenyDate: 2004-02-28 12:18:45
Subject: Re: copying data between tables

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group