Re: How do I select the last Id in a column???

Поиск
Список
Период
Сортировка
От Josh Goldberg
Тема Re: How do I select the last Id in a column???
Дата
Msg-id 038001c33f32$74081fb0$6e02a8c0@4dmatrix.com
обсуждение исходный текст
Ответ на How do I select the last Id in a column???  (Michael Kovalcik <makd32@yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: Help. Pg not running
Следующее
От: Sam Barnett-Cormack
Дата:
Сообщение: Re: Help. Pg not running