Re: WAL Bypass for indexes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Nicolas Barbier" <nicolas(dot)barbier(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: WAL Bypass for indexes
Date: 2006-04-07 14:22:04
Message-ID: 11614.1144419724@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Nicolas Barbier" <nicolas(dot)barbier(at)gmail(dot)com> writes:
> 2006/4/3, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
>> AFAICS there are no circumstances, ever, in which update-in-place is
>> "safe". (No transaction can guarantee that it will commit.)

> Updates to row values that did not "escape" the currect transaction
> yet (ie, rows that were created by or have their last value written by
> the current transaction).

Wrong, because MVCC also applies within transactions: a snapshot having
a lower command counter than what you are executing at should not see
your change. A typical example of this is that an update scan must not
see tuples generated by triggers fired by that scan.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2006-04-07 16:34:21 FW: [GENERAL] stored proc vs sql query string
Previous Message Oleg Bartunov 2006-04-07 13:53:36 Re: GIN - Generalized Inverted iNdex.