Re: pgsql: Avoid resetting Xmax when it's a multi with an aborted update

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Avoid resetting Xmax when it's a multi with an aborted update
Date: 2013-12-05 16:42:26
Message-ID: 20131205164225.GA6777@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Tom Lane wrote:
> Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> writes:
> > Avoid resetting Xmax when it's a multi with an aborted update
>
> I may be confused, but this patch doesn't look like it does what
> your commit log message says. It looks to me like the logic for
> setting the hint bit is exactly the same as before; what's changed
> is only the return code from HeapTupleSatisfiesUpdate.
>
> The code looks right, though. Is it just that your commit message
> misdescribes it?

You're right, I got the commit message wrong. The problem is still that
locks can go "ignored" (if not "forgotten") due to the wrong return
code.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2013-12-05 17:49:12 pgsql: Clear retry flags properly in replacement OpenSSL sock_write fun
Previous Message Tom Lane 2013-12-05 16:15:53 Re: pgsql: Avoid resetting Xmax when it's a multi with an aborted update