Re: Postgres 8.3.10 Alter Table Waiting issue

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-admin(at)postgresql(dot)org>,<pgsql-general(at)postgresql(dot)org>, <ptharmaraj(at)sirahu(dot)com>
Subject: Re: Postgres 8.3.10 Alter Table Waiting issue
Date: 2011-06-17 13:55:22
Message-ID: 4DFB167A020000250003E7C2@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

[please don't send a post to multiple lists]

Pratheeban Jebasingh Tharmaraj <ptharmaraj(at)sirahu(dot)com> wrote:

> I am trying to add column to the table that's hanging.
>
> alter table hr_firms add column_name biginit;
>
> This is the lock I see in the db
>
> relation | 564709 | 586888 | | | |
> | | | | 1/8 | 1871 |
> AccessExclusiveLock | f

So it's temporarily blocking, waiting for conflicting access to
complete.

> Is it known issue or any fix available?

Don't modify the structure of the table at the same time as
conflicting access against the table, or wait for the transactions
performing the conflicting access to commit?

You haven't described the other activity on the table or shown the
other lock(s) involved in the blocking. Without more information,
it's hard to be more specific.

http://wiki.postgresql.org/wiki/Guide_to_reporting_problems

-Kevin

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2011-06-17 16:32:56 Re: archive_command vs. cp -i
Previous Message Nicolas Thauvin 2011-06-17 13:23:44 Re: pg_dump and drop table if exists statement

Browse pgsql-general by date

  From Date Subject
Next Message Erwin Moller 2011-06-17 14:16:27 Re: psql reports back wrong number of affected rows.
Previous Message David Johnston 2011-06-17 13:30:27 Re: ncoding "Table Name" and "Filed Name"