Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WzSuQ-0000Rf-FZ for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Jun 2014 15:45:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WzSuP-0002Xr-Vo for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Jun 2014 15:45:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WzRke-0005Ug-51 for pgsql-bugs@postgresql.org; Tue, 24 Jun 2014 14:31:12 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WzRkX-0007Rk-BT for pgsql-bugs@postgresql.org; Tue, 24 Jun 2014 14:31:11 +0000 MIME-Version: 1.0 Subject: BUG #10750: xmax is not resetting properly with FOR UPDATE To: pgsql-bugs@postgresql.org From: pinker@onet.eu Date: Tue, 24 Jun 2014 14:30:56 +0000 Message-ID: <20140624143056.2620.38980@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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