pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Gaetano Mendola <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org
Subject: Re: ALTER table taking ages...
Date: Sat, 28 Feb 2004 13:32:34 +0100
Message-ID: <c1q1p4$f2d$1@floppy.pyrenet.fr> (raw )
In-Reply-To: <403EF608.7040005@trade-india.com >
References: <403EF608.7040005@trade-india.com >
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
view thread (4+ messages)
Message-ID: <c1q1p4$f2d$1@floppy.pyrenet.fr>
Permalink: ../c1q1p4$f2d$1@floppy.pyrenet.fr/
Also on: postgresql.org/message-id/c1q1p4$f2d$1@floppy.pyrenet.fr
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mendola@bigfoot.com
Subject: Re: ALTER table taking ages...
In-Reply-To: <c1q1p4$f2d$1@floppy.pyrenet.fr>
References: <403EF608.7040005@trade-india.com> <c1q1p4$f2d$1@floppy.pyrenet.fr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox