X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 30DC89DC820 for ; Sat, 18 Mar 2006 02:19:19 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28418-07 for ; Sat, 18 Mar 2006 02:19:18 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 01F489DCA10 for ; Sat, 18 Mar 2006 02:19:16 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k2I6JFJm013509; Sat, 18 Mar 2006 01:19:15 -0500 (EST) To: Kevin Brown cc: pgsql-general@postgresql.org Subject: Re: Transactions In-reply-to: <200603180020.01418.blargity@gmail.com> References: <200603180020.01418.blargity@gmail.com> Comments: In-reply-to Kevin Brown message dated "Sat, 18 Mar 2006 00:20:00 -0600" Date: Sat, 18 Mar 2006 01:19:15 -0500 Message-ID: <13508.1142662755@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.113 required=5 tests=[AWL=0.113] X-Spam-Score: 0.113 X-Spam-Level: X-Archive-Number: 200603/807 X-Sequence-Number: 92672 Kevin Brown writes: > So when the dialog opens, it executes a BEGIN, and then based on whether they > clicked ok or cancel on the dialog, it'd COMMIT or ROLLBACK. This worked > fine for me in testing, but now that I have two people using this app > simulatneously, if they both click on ok at the same time, postgres seemingly > deadlocks. Shouldn't happen; please provide a reproducible test case. regards, tom lane