Re: [BUGS] Status of issue 4593

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: "Robert Haas" <robertmhaas(at)gmail(dot)com>, "Jeff Davis" <pgsql(at)j-davis(dot)com>, "Lee McKeeman" <lmckeeman(at)opushealthcare(dot)com>, "PG Hackers" <pgsql-hackers(at)postgresql(dot)org>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: [BUGS] Status of issue 4593
Date: 2009-01-13 16:18:58
Message-ID: 496C6A92.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

>>> Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> Kevin Grittner wrote:
>> (In Microsoft SQL Server and Sybase ASE we actually had to run our
>> read-only web application at the READ UNCOMMITTED transaction
>> isolation level because so many SELECT queries were rolled back
>> when they deadlocked with the traffic from replication when they
>> were all running at READ COMMITTED.)
>
> Per SQL standard, READ UNCOMMITTED mode requires READ ONLY
transaction
> access mode, so you couldn't do FOR UPDATE there anyway.

My only point was that other DBMSs often generate serialization
failures on SELECT-only transactions in READ COMMITTED mode.
Sometimes quite a few of them. I also recognized that if PostgreSQL
can provide guarantees not required by the standard that such things
won't happen, I can see the value of that.

>> If you run this at SERIALIZABLE transaction isolation level, would
>> PostgreSQL currently roll something back before returning rows in
an
>> order different than that specified by the ORDER BY clause?
>
> Yes, but using FOR UPDATE is kind of pointless in serializable mode.

Well, for transactions which only SELECT, sure. Is there no use case
for them outside of that? (That's not rhetorical -- I'm not really
sure.)

-Kevin

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Kevin Grittner 2009-01-13 16:59:52 Re: [BUGS] Status of issue 4593
Previous Message Valentine Gogichashvili 2009-01-13 14:52:00 BUG #4613: intarray_del_elem returns an invalid empty array (for nullif comparison)

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Chernow 2009-01-13 16:28:12 Re: solaris libpq threaded build fails
Previous Message Alvaro Herrera 2009-01-13 16:00:17 Re: per-database locale: createdb switches