From: Andrew Sullivan <andrew@libertyrms.info>
To: PgSQL Performance ML <pgsql-performance@postgresql.org>
Subject: Re: schema/db design wrt performance
Date: Thu, 16 Jan 2003 10:39:33 -0500
Message-ID: <20030116103933.B32288@mail.libertyrms.com> (raw)
In-Reply-To: <1042727678.892.31.camel@haggis>
References: <20030116135140.32097.qmail@web21106.mail.yahoo.com>
<20030116092005.C22344@mail.libertyrms.com>
<1042727678.892.31.camel@haggis>
On Thu, Jan 16, 2003 at 08:34:38AM -0600, Ron Johnson wrote:
> On Thu, 2003-01-16 at 08:20, Andrew Sullivan wrote:
> > If a user has multiple connections and charges things to the same
> > account in more than one connection at the same time, the
> > transactions will have to be processed, effectively, in series: each
> > one will have to wait for another to commit in order to complete.
>
> This is true even though the default transaction mode is
> READ COMMITTED?
Yes. Remember, _both_ of these are doing SELECT. . .FOR UPDATE.
Which means they both try to lock the corresponding record. But they
can't _both_ lock the same record; that's what the lock prevents.
A
--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew@libertyrms.info> M2P 2A8
+1 416 646 3304 x110
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-performance@postgresql.org
Cc: andrew@libertyrms.info
Subject: Re: schema/db design wrt performance
In-Reply-To: <20030116103933.B32288@mail.libertyrms.com>
References: <20030116135140.32097.qmail@web21106.mail.yahoo.com> <20030116092005.C22344@mail.libertyrms.com> <1042727678.892.31.camel@haggis> <20030116103933.B32288@mail.libertyrms.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