Re: tuple concurrently updated - Mailing list pgsql-admin

From pavan95
Subject Re: tuple concurrently updated
Date
Msg-id 1535463942466-0.post@n3.nabble.com
Whole thread Raw
In response to Re: tuple concurrently updated  (wambacher@posteo.de)
Responses Re: tuple concurrently updated  (wambacher@posteo.de)
Re: tuple concurrently updated  (Walter Nordmann <walter.nordmann@posteo.de>)
List pgsql-admin
Hi Walter,

Why can't you go with a postgres service restart in order to get rid of this
error?

>DELETE FROM planet_osm_line WHERE osm_id = -166570; 
>FEHLER:  tuple concurrently updated 

Concurrent transactions can update or delete one or more of those rows
before DELETE can lock the rows (at least with the default isolation level
READ COMMITTED). This would result in your error message.

To defend against this race condition, lock the rows in the SELECT with FOR
UPDATE (or other options)

Regards,
Pavan



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html


pgsql-admin by date:

Previous
From: wambacher@posteo.de
Date:
Subject: Re: tuple concurrently updated
Next
From: 066ce286@free.fr
Date:
Subject: Re: tuple concurrently updated