From: Sandro Santilli <strk@keybit.net>
To: pgsql-bugs@postgresql.org
Subject: uninterruptable loop: concurrent delete in progress within table
Date: Fri, 30 May 2014 16:31:50 +0200
Message-ID: <20140530143150.GA11051@localhost> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The attached script shows a plpgsql function that enters
an infinite loop which is not interrupted by statement_timeout.
Looping message is:
WARNING: concurrent delete in progress within table "crash9", xid is 4458893, self is 4458894/4458889
CONTEXT: SQL statement "CREATE INDEX ON crash9 USING GIST ( the_geom)"
PL/pgSQL function crash(regclass) line 148 at EXECUTE statement
Note that the xid and self parts of the WARNING message were added by myself
on request by "andres" (on the freenode IRC channel).
I could reproduce with both 9.3.0 and 9.3.4 (current 9.3 stable branch).
Sounds like a PostgreSQL bug to me, what do you think ?
Is there anything I can do from the plpgsql function to workaround it ?
--strk;
() ASCII ribbon campaign -- Keep it simple !
/\ http://strk.keybit.net/rants/ascii_mails.txt
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: strk@keybit.net
Subject: Re: uninterruptable loop: concurrent delete in progress within table
In-Reply-To: <20140530143150.GA11051@localhost>
References: <20140530143150.GA11051@localhost>
* 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