Re: SSI predicate locking on heap -- tuple or row?

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Aidan Van Dyk <aidan(at)highrise(dot)ca>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, drkp(at)csail(dot)mit(dot)edu, pgsql-hackers(at)postgresql(dot)org
Subject: Re: SSI predicate locking on heap -- tuple or row?
Date: 2011-05-23 14:36:23
Message-ID: BANLkTiknh-QyVOU9NXeR+mrj_+oR4UqcUQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, May 23, 2011 at 10:20 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Aidan Van Dyk <aidan(at)highrise(dot)ca> writes:
>> So, if SSI conflicts something on the UPDATE case, it would necessrily
>> have to conflict the DELETE+INSERT case as well, and vice-versa.
>
> This argument is fundamentally bogus, because an UPDATE is not the same
> thing as DELETE followed by INSERT.  In the former case the new tuple
> will have a ctid link from the old one; in the latter case not.  And
> that will affect the behavior of subsequent operations.

Right. The point I was driving at is - in what way will that affect
the behavior of subsequent operations?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message MauMau 2011-05-23 14:49:29 Re: Fw: [BUGS] BUG #6011: Some extra messages are output in the event log at PostgreSQL startup
Previous Message Robert Haas 2011-05-23 14:34:37 Re: 9.1 support for hashing arrays