Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WqNqu-0003NK-Em for pgsql-bugs@arkaria.postgresql.org; Fri, 30 May 2014 14:32:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WqNqt-0008EP-MB for pgsql-bugs@arkaria.postgresql.org; Fri, 30 May 2014 14:32:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WqNqs-0008EJ-Vg for pgsql-bugs@postgresql.org; Fri, 30 May 2014 14:32:11 +0000 Received: from mail-we0-x231.google.com ([2a00:1450:400c:c03::231]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WqNql-0007EV-SM for pgsql-bugs@postgresql.org; Fri, 30 May 2014 14:32:09 +0000 Received: by mail-we0-f177.google.com with SMTP id x48so2101899wes.36 for ; Fri, 30 May 2014 07:32:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:content-transfer-encoding:user-agent; bh=h8g8eVxm5oQVOY65hkpCeKjU1tAfRZZFv0hjmpc9dYY=; b=DgbAj5NzkC2I3nlh+5G4nQ/Nva6U+axxCdeGnMlf0vdEvXxLP4GQtmDafvDNpPUZwq Gm4AsVYOLyF7jPtdrC+MZQ8lBlrY9znxZKmSY1TXvPvqWFUommJ8tCmPgSfSSMExqyL4 A8bjWwBieqw96FlgVxNpZasUoaWILG1uPYBIMqB4UmrQjNFS4pBQck43LqIIEe8ws0Ol b1Tw3K7VgVgJD6r59vtXuevMQNf5zV0opn9PyUZEd/HVe/PDFLp7/hShYVz6LkpxYfl8 WQvNUV5XnzWCRarHpWb0D7avr8wpHZ08j7V+Bhj38gbdqhYKu0IFsQcC+gNcFbgPvEnQ U0nA== X-Received: by 10.195.13.76 with SMTP id ew12mr22360486wjd.80.1401460321744; Fri, 30 May 2014 07:32:01 -0700 (PDT) Received: from localhost (ca-18-219-173.service.infuturo.it. [151.18.219.173]) by mx.google.com with ESMTPSA id z14sm6458729wiu.6.2014.05.30.07.31.57 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 30 May 2014 07:32:00 -0700 (PDT) Date: Fri, 30 May 2014 16:31:50 +0200 From: Sandro Santilli To: pgsql-bugs@postgresql.org Subject: uninterruptable loop: concurrent delete in progress within table Message-ID: <20140530143150.GA11051@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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