From: Robert Haas <robertmhaas@gmail.com>
To: Jon Nelson <jnelson+pgsql@jamponi.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Problem with ALTER TABLE - occasional "tuple concurrently updated"
Date: Wed, 17 Nov 2010 21:57:09 -0500
Message-ID: <AANLkTim23nnhT7CKiLc5Z42N_KyucF9ENVM7bFi6Avaz@mail.gmail.com> (raw)
In-Reply-To: <AANLkTin1ojKfoOyD5zSPL++fgMas9PjgPQosDwG5u6ht@mail.gmail.com>
References: <AANLkTin1ojKfoOyD5zSPL++fgMas9PjgPQosDwG5u6ht@mail.gmail.com>
On Tue, Nov 16, 2010 at 10:48 AM, Jon Nelson <jnelson+pgsql@jamponi.net> wrote:
> I have a process which runs in parallel creating tables which, as the
> /final/ step in the import, gets SQL much like the following applied:
>
> ALTER TABLE foo INHERIT bar;
>
> Periodically, I get this error: tuple concurrently updated
>
> Of course, I googled for the error message and see a bunch of issues
> involving ANALYZE and even DROP function.
> Is this the same root cause? Is there a fix? Is there a lock I could
> take or some other approach that would prevent the error?
> I thought all ALTER TABLE statements took a big fat lock to prevent
> such an issue.
The ALTER TABLE generates that error? Is it running concurrently with
any other DML? What version of PostgreSQL is this?
That does sound like a bug.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
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-bugs@postgresql.org
Cc: robertmhaas@gmail.com, jnelson+pgsql@jamponi.net
Subject: Re: Problem with ALTER TABLE - occasional "tuple concurrently updated"
In-Reply-To: <AANLkTim23nnhT7CKiLc5Z42N_KyucF9ENVM7bFi6Avaz@mail.gmail.com>
References: <AANLkTin1ojKfoOyD5zSPL++fgMas9PjgPQosDwG5u6ht@mail.gmail.com> <AANLkTim23nnhT7CKiLc5Z42N_KyucF9ENVM7bFi6Avaz@mail.gmail.com>
* 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