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 3166330FFE3 for ; Fri, 27 Jun 2003 01:07:13 +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 57138-03 for ; Thu, 26 Jun 2003 22:07:02 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id EBA1D30FD30 for ; Thu, 26 Jun 2003 22:07:01 -0300 (ADT) Received: (qmail 11917 invoked by uid 500); 27 Jun 2003 01:10:31 -0000 Date: Thu, 26 Jun 2003 20:10:31 -0500 From: Bruno Wolff III To: Josh Goldberg Cc: pgsql-admin@postgresql.org, Michael Kovalcik Subject: Re: How do I select the last Id in a column??? Message-ID: <20030627011031.GA11891@wolff.to> Mail-Followup-To: Josh Goldberg , pgsql-admin@postgresql.org, Michael Kovalcik References: <20030623184706.75021.qmail@web11101.mail.yahoo.com> <01f401c33c25$fbffd5d0$6e02a8c0@4dmatrix.com> <3EFB6788.21DE9637@dhs-club.com> <024f01c33c45$83830e40$6e02a8c0@4dmatrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <024f01c33c45$83830e40$6e02a8c0@4dmatrix.com> User-Agent: Mutt/1.5.4i X-Archive-Number: 200306/312 X-Sequence-Number: 9303 On Thu, Jun 26, 2003 at 17:46:14 -0700, Josh Goldberg wrote: > From what Bruno enlightened us to about read commit mode, it seems this is > the only safe way to go. > > Wouldn't currval (as presented by others) be affected in the same manner as > my example? No because currval returns the last value used in the current session.