pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgres 8.3.10 Alter Table Waiting issue
3+ messages / 3 participants
[nested] [flat]
* Postgres 8.3.10 Alter Table Waiting issue
@ 2011-06-16 16:30 Pratheeban Jebasingh Tharmaraj <ptharmaraj@sirahu.com>
2011-06-16 18:30 ` Re: [GENERAL] Postgres 8.3.10 Alter Table Waiting issue Alban Hertroys <dalroi@solfertje.student.utwente.nl>
0 siblings, 1 reply; 3+ messages in thread
From: Pratheeban Jebasingh Tharmaraj @ 2011-06-16 16:30 UTC (permalink / raw)
To: pgsql-admin; pgsql-general@postgresql.org
Hi Team,
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
Version of postgres: 8.3.10
Is it known issue or any fix available?
--
With Warm Regards,
Pratheeban .T
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [GENERAL] Postgres 8.3.10 Alter Table Waiting issue
2011-06-16 16:30 Postgres 8.3.10 Alter Table Waiting issue Pratheeban Jebasingh Tharmaraj <ptharmaraj@sirahu.com>
@ 2011-06-16 18:30 ` Alban Hertroys <dalroi@solfertje.student.utwente.nl>
0 siblings, 0 replies; 3+ messages in thread
From: Alban Hertroys @ 2011-06-16 18:30 UTC (permalink / raw)
To: Pratheeban Jebasingh Tharmaraj <ptharmaraj@sirahu.com>; +Cc: pgsql-admin; pgsql-general@postgresql.org
On 16 Jun 2011, at 18:30, Pratheeban Jebasingh Tharmaraj wrote:
> Hi Team,
>
> I am trying to add column to the table that's hanging.
>
> alter table hr_firms add column_name biginit;
^^^^^^
typo?
> This is the lock I see in the db
>
> relation | 564709 | 586888 | | | | | | | | 1/8 | 1871 | AccessExclusiveLock | f
>
> Version of postgres: 8.3.10
>
> Is it known issue or any fix available?
You have some uncommitted transaction (by the process with pid 1871) on that table that's preventing the database from altering the table. Close that session and it should continue.
Alban Hertroys
--
Screwing up is an excellent way to attach something to the ceiling.
!DSPAM:1268,4dfa4bb512091837758085!
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Postgres 8.3.10 Alter Table Waiting issue
@ 2011-06-17 13:55 Kevin Grittner <Kevin.Grittner@wicourts.gov>
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Grittner @ 2011-06-17 13:55 UTC (permalink / raw)
To: pgsql-admin; pgsql-general@postgresql.org; ptharmaraj@sirahu.com
[please don't send a post to multiple lists]
Pratheeban Jebasingh Tharmaraj <ptharmaraj@sirahu.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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2011-06-17 13:55 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-06-16 16:30 Postgres 8.3.10 Alter Table Waiting issue Pratheeban Jebasingh Tharmaraj <ptharmaraj@sirahu.com>
2011-06-16 18:30 ` Alban Hertroys <dalroi@solfertje.student.utwente.nl>
2011-06-17 13:55 Re: Postgres 8.3.10 Alter Table Waiting issue Kevin Grittner <Kevin.Grittner@wicourts.gov>
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