X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 058F330DE2B for ; Mon, 30 Jun 2003 18:10:33 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 37232-07 for ; Mon, 30 Jun 2003 15:10:22 -0300 (ADT) Received: from mail.4dmatrix.com (mail.4dmatrix.com [208.248.151.248]) by svr1.postgresql.org (Postfix) with ESMTP id 1AA683109F3 for ; Mon, 30 Jun 2003 15:10:19 -0300 (ADT) Received: from joshdesk2 (sonicwall.4dmatrix.com [208.248.151.201] (may be forged)) by mail.4dmatrix.com (8.9.3/8.9.3) with SMTP id LAA15246; Mon, 30 Jun 2003 11:01:50 -0700 Message-ID: <038001c33f32$74081fb0$6e02a8c0@4dmatrix.com> From: "Josh Goldberg" To: "Bruno Wolff III" Cc: "Michael Kovalcik" , References: <20030623184706.75021.qmail@web11101.mail.yahoo.com> <01f401c33c25$fbffd5d0$6e02a8c0@4dmatrix.com> <20030626233001.GA11420@wolff.to> <02a101c33cce$7af916a0$6e02a8c0@4dmatrix.com> <20030627234813.GA21761@wolff.to> Subject: Re: How do I select the last Id in a column??? Date: Mon, 30 Jun 2003 11:07:21 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200306/347 X-Sequence-Number: 9338 I did, and the second transaction wouldn't even complete the insert until the first transaction commit'd or rollback'd. I created two new tables and tried on there and it produced the expected behaviour, but several of my existing tables do not. I changed my code to use currval from now on, just to play it safe :-) ----- Original Message ----- From: "Bruno Wolff III" To: "Josh Goldberg" Cc: "Michael Kovalcik" ; Sent: Friday, June 27, 2003 4:48 PM Subject: Re: [ADMIN] How do I select the last Id in a column??? > On Fri, Jun 27, 2003 at 10:06:41 -0700, > Josh Goldberg wrote: > > What could cause a table to act serialized when read committed transactions > > are set in the configuration? That is something I am running into, which > > provoked my [incorrect] example. > > Getting lucky. Did you actually run two transactions in parallel and stop > between the select and insert so that you could do a select, insert and > commit in the other transaction? > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster >