Re: MultiXacts & WAL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: paolo romano <paolo(dot)romano(at)yahoo(dot)it>
Cc: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: MultiXacts & WAL
Date: 2006-06-18 15:17:44
Message-ID: 28458.1150643864@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

paolo romano <paolo(dot)romano(at)yahoo(dot)it> writes:
> Anyway, again in theory, if one wanted to minimize logging overhead for shared locks, one might adopt a different treatment for (i) regular shared locks (i.e. locks due to plain reads not requiring durability in case of 2PC) and (ii) shared locks held because some SQL command is referencing a tuple via a FK, which have to be persisted until the 2-nd 2PC phase (There is no any other scenario in which you *must* persist shared locks, is there?)

I can't see any basis at all for asserting that you don't need to
persist particular types of locks. In the current system, a multixact
lock might arise from either FK locking, or a user-issued SELECT FOR SHARE.
In either case it's possible that the lock was taken to guarantee the
integrity of a data change made somewhere else. So we can't release it
before commit.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-06-18 15:35:11 Slightly bogus regression test for contrib/dblink
Previous Message Thomas Hallgren 2006-06-18 14:02:31 Re: Unable to initdb using HEAD on Windows XP