Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWPJ3-0005xT-Mm for pgsql-bugs@arkaria.postgresql.org; Mon, 31 Aug 2015 13:39:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZWPJ2-0000FZ-QN for pgsql-bugs@arkaria.postgresql.org; Mon, 31 Aug 2015 13:39:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZWPJ2-0000FO-Aw for pgsql-bugs@postgresql.org; Mon, 31 Aug 2015 13:39:28 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZWPIz-0001Ey-WC for pgsql-bugs@postgresql.org; Mon, 31 Aug 2015 13:39:27 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id DBE9F860003; Mon, 31 Aug 2015 15:39:24 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p54AF4D27.dip0.t-ipconnect.de [84.175.77.39]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id C9C21860001; Mon, 31 Aug 2015 15:39:21 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 4DBA4108594; Mon, 31 Aug 2015 15:39:21 +0200 (CEST) Date: Mon, 31 Aug 2015 15:39:21 +0200 From: Andres Freund To: immortaldragonm@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13598: Hang forever, but must rollback (deadlock) Message-ID: <20150831133921.GB11441@awork2.anarazel.de> References: <20150831080351.2088.33853@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150831080351.2088.33853@wrigleys.postgresql.org> X-Pg-Spam-Score: -4.2 (----) 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 On 2015-08-31 08:03:51 +0000, immortaldragonm@gmail.com wrote: > I think, that postgres must detect deadlock and rollback one of transaction > with error. But it hang forever. Why? i think it's bug. It's not a deadlock postgres can handle - the blocking part is in your application. If these were submitted by two independent clients it'd work. Greetings, Andres Freund -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs