pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pinker@onet.eu
To: pgsql-bugs@postgresql.org
Subject: BUG #10750: xmax is not resetting properly with FOR UPDATE
Date: Tue, 24 Jun 2014 14:30:56 +0000
Message-ID: <20140624143056.2620.38980@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      10750
Logged by:          Alicja Kucharczyk
Email address:      pinker@onet.eu
PostgreSQL version: 9.3.4
Operating system:   RedHat
Description:        

The problem is described here:
http://stackoverflow.com/questions/24382158/strange-cleanup-behaviour-with-for-update

The main problem is that xmax values stays set with xid of transaction that
has already committed. The documentation says: "The identity (transaction
ID) of the deleting transaction, or zero for an undeleted row version. It is
possible for this column to be nonzero in a visible row version. That
usually indicates that the deleting transaction hasn't committed yet, or
that an attempted deletion was rolled back."

I have used this feature for a queue to avoid locking, but it doesn't work
together with FOR UPDATE clause.

best regards,
A.Kucharczyk


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



Message-ID: <20140624143056.2620.38980@wrigleys.postgresql.org>
Permalink:  ../20140624143056.2620.38980@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20140624143056.2620.38980@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pinker@onet.eu
  Subject: Re: BUG #10750: xmax is not resetting properly with FOR UPDATE
  In-Reply-To: <20140624143056.2620.38980@wrigleys.postgresql.org>
  References: <20140624143056.2620.38980@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox