Re: How do I select the last Id in a column??? - Mailing list pgsql-admin

From Josh Goldberg
Subject Re: How do I select the last Id in a column???
Date
Msg-id 038001c33f32$74081fb0$6e02a8c0@4dmatrix.com
Whole thread Raw
In response to How do I select the last Id in a column???  (Michael Kovalcik <makd32@yahoo.com>)
List pgsql-admin
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" <bruno@wolff.to>
To: "Josh Goldberg" <josh@4dmatrix.com>
Cc: "Michael Kovalcik" <makd32@yahoo.com>; <pgsql-admin@postgresql.org>
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 <josh@4dmatrix.com> 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
>


pgsql-admin by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: Help. Pg not running
Next
From: Sam Barnett-Cormack
Date:
Subject: Re: Help. Pg not running