From: Josh Goldberg <josh@4dmatrix.com>
To: Bruno Wolff III <bruno@wolff.to>
Cc: Michael Kovalcik <makd32@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: How do I select the last Id in a column???
Date: Mon, 30 Jun 2003 11:07:21 -0700
Message-ID: <038001c33f32$74081fb0$6e02a8c0@4dmatrix.com> (raw)
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>
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
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: josh@4dmatrix.com, bruno@wolff.to, makd32@yahoo.com
Subject: Re: How do I select the last Id in a column???
In-Reply-To: <038001c33f32$74081fb0$6e02a8c0@4dmatrix.com>
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> <038001c33f32$74081fb0$6e02a8c0@4dmatrix.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox