Re: A long-running transaction

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: Joe <dev(at)freedomcircle(dot)net>
Cc: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>, pgsql-sql(at)postgresql(dot)org
Subject: Re: A long-running transaction
Date: 2007-04-13 17:01:08
Message-ID: 20070413170108.GD31517@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, Apr 13, 2007 at 12:42:36PM -0400, Joe wrote:
>
> Just curious: is there a way to defeat MVCC?

No. That is,

> i.e., if you can lock the
> database exclusively, there won't be any readers or writers?

while this is true, it doesn't shut off the way writes go through the
system. MVCC is rather close to the central guts of PostgreSQL.

If you want to understand more about why this is the case, what the
trade-off considerations are, &c., then I stronly advise you to troll
through the -hackers archives. Approximately once every 8-10 months
someone comes along with an idea for a change that disables MVCC in
just this or that case. Most of the time, the actual effects of this
are different than people think they will be -- concurrency is hard,
and making changes so that it's impossible to get into a race is
tricky. This is why the in-place storage management that
EnterpriseDB contributed was both somewhat controversial and somewhat
limited in its application.

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
This work was visionary and imaginative, and goes to show that visionary
and imaginative work need not end up well.
--Dennis Ritchie

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message saytinh 2007-04-16 03:48:25 i have prolem can you help me
Previous Message Joe 2007-04-13 16:42:36 Re: A long-running transaction