pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: wambacher@posteo.de
To: pgsql-admin@lists.postgresql.org
Subject: Re: tuple concurrently updated
Date: Tue, 28 Aug 2018 15:59:55 +0200
Message-ID: <cc94d29e-3956-9d37-a4a2-180864250428@posteo.de> (raw)
In-Reply-To: <1535463942466-0.post@n3.nabble.com>
References: <986488f7-ff29-5dff-9425-5fcd6dcbb68a@posteo.de>
	<1378566276.366027624.1535454005687.JavaMail.root@zimbra82-e14.priv.proxad.net>
	<99342cd8-c2f6-31bd-f8e4-5c65658b1a2f@posteo.de>
	<1233975696.366149748.1535454938944.JavaMail.root@zimbra82-e14.priv.proxad.net>
	<cc5734b5-7706-1873-4640-67c51a42cb23@posteo.de>
	<f737db87-9ca8-a90c-c29d-fd9638a8a3cf@posteo.de>
	<114865725.367018989.1535461805284.JavaMail.root@zimbra82-e14.priv.proxad.net>
	<2be8ebca-fecc-51f4-39d7-9869941c679a@posteo.de>
	<1535463942466-0.post@n3.nabble.com>

updates are done using a program, that is without my control: osm2pgsql.

this program does everthing which is necessary including locking. and
it't running for years on many, many openstreetmap servers.

because there was a crash before, it must be a data corruption problem,
not programming error.

regards

walter

Am 28.08.2018 um 15:45 schrieb pavan95:
> 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
>

-- 
My projects:

Admin Boundaries of the World <https://wambachers-osm.website/boundaries;
Missing Boundaries
<https://wambachers-osm.website/index.php/projekte/internationale-administrative-grenzen/missing-boun...;
Emergency Map <https://wambachers-osm.website/emergency;
Postal Code Map (Germany only) <https://wambachers-osm.website/plz;
Fools (QA for zipcodes in Germany) <https://wambachers-osm.website/fools;
Postcode Boundaries of Germany <https://wambachers-osm.website/pcoundaries;

view thread (28+ messages)  latest in thread

Message-ID: <cc94d29e-3956-9d37-a4a2-180864250428@posteo.de>
Permalink:  ../cc94d29e-3956-9d37-a4a2-180864250428@posteo.de/
Also on:    postgresql.org/message-id/cc94d29e-3956-9d37-a4a2-180864250428@posteo.de

 · 

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-admin@postgresql.org
  Cc: wambacher@posteo.de
  Subject: Re: tuple concurrently updated
  In-Reply-To: <cc94d29e-3956-9d37-a4a2-180864250428@posteo.de>
  References: <986488f7-ff29-5dff-9425-5fcd6dcbb68a@posteo.de> <1378566276.366027624.1535454005687.JavaMail.root@zimbra82-e14.priv.proxad.net> <99342cd8-c2f6-31bd-f8e4-5c65658b1a2f@posteo.de> <1233975696.366149748.1535454938944.JavaMail.root@zimbra82-e14.priv.proxad.net> <cc5734b5-7706-1873-4640-67c51a42cb23@posteo.de> <f737db87-9ca8-a90c-c29d-fd9638a8a3cf@posteo.de> <114865725.367018989.1535461805284.JavaMail.root@zimbra82-e14.priv.proxad.net> <2be8ebca-fecc-51f4-39d7-9869941c679a@posteo.de> <1535463942466-0.post@n3.nabble.com> <cc94d29e-3956-9d37-a4a2-180864250428@posteo.de>

* 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