From: Samuel Stearns <SStearns@internode.com.au>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: ALTER TABLE <name> ADD COLUMN Hangs
Date: Fri, 23 Apr 2010 08:26:15 +0930
Message-ID: <68B59BEDCD36854AADBDF17E91B2937A01A4DC6401@EXCHMAIL.staff.internode.com.au> (raw)
In-Reply-To: <i2hdcc563d11004212345n294743afy6f7b780a28494d3b@mail.gmail.com>
References: <68B59BEDCD36854AADBDF17E91B2937A01A4DC6236@EXCHMAIL.staff.internode.com.au>
<i2hdcc563d11004212345n294743afy6f7b780a28494d3b@mail.gmail.com>
Thanks Ross and Scott. I got it to complete finally thanks to Ross' tip of looking at pg_locks. I had to kill a few processes with exclusive locks on the table and then presto!
Scott, the query didn't have a DEFAULT keyword with it and I've got a request in with our sysadmins to upgrade us to 8.3.10. Thanks both of you for all your help.
Sam
-----Original Message-----
From: Scott Marlowe [mailto:scott.marlowe@gmail.com]
Sent: Thursday, 22 April 2010 4:15 PM
To: Samuel Stearns
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] ALTER TABLE <name> ADD COLUMN Hangs
On Wed, Apr 21, 2010 at 8:17 PM, Samuel Stearns
<SStearns@internode.com.au> wrote:
> Howdy,
>
> I'm running in an 8.3.3 environment. What could cause, or how can I
> diagnose, why an 'ALTER TABLE <name> ADD COLUMN' statement runs for hours
> eventually locking users out and requiring to be killed in the end?
And not that it matters here, but is there a reason for running such
out of date pgsql code?
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: SStearns@internode.com.au, scott.marlowe@gmail.com
Subject: Re: ALTER TABLE <name> ADD COLUMN Hangs
In-Reply-To: <68B59BEDCD36854AADBDF17E91B2937A01A4DC6401@EXCHMAIL.staff.internode.com.au>
References: <68B59BEDCD36854AADBDF17E91B2937A01A4DC6236@EXCHMAIL.staff.internode.com.au> <i2hdcc563d11004212345n294743afy6f7b780a28494d3b@mail.gmail.com> <68B59BEDCD36854AADBDF17E91B2937A01A4DC6401@EXCHMAIL.staff.internode.com.au>
* 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