Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJ33E-0005hq-1n for pgsql-general@arkaria.postgresql.org; Fri, 11 Oct 2019 22:06:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iJ33C-0007yW-Iw for pgsql-general@arkaria.postgresql.org; Fri, 11 Oct 2019 22:06:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJ33B-0007yF-DF for pgsql-general@lists.postgresql.org; Fri, 11 Oct 2019 22:06:18 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJ336-0001hL-Bu for pgsql-general@lists.postgresql.org; Fri, 11 Oct 2019 22:06:16 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D1C1720D0F; Fri, 11 Oct 2019 18:06:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 11 Oct 2019 18:06:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=w ruxNGTSSGFKoDzyiqV04MyF6QVITz754riR7r5SbWw=; b=VPVlmo2jwcbXkZvEH ZahkiLif8kBOgIHcTmJ9z2JbXeEj5kYAe85J/mRWAKJyNg+0/4I6s0X7cONmFeLF j888lJWVuuQXawb9YhX7bLjudWbLUTcxc7jUBIP2903P6+72lFfFeRQlgUGsY7CN rMIHkRqabqH26Jl2aGqj18aUPxTfVIPHL3SL4fq4PtnP1WfmfAiF7taZ7gFqouxZ N2DrwGLkq9uoGe4mf6qHM1cELgcsqwcd8KWFz4rxytjryz4COhZS+nkAtYO/+xcz VbfAm31DBUrNkOiJHyH3Gzqe1wsEr7+dlNO9LikCXfnKOXmPN1GJEkqmnNrBiCWi pQMWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=wruxNGTSSGFKoDzyiqV04MyF6QVITz754riR7r5Sb Ww=; b=AKUBKZVIOjskPpK5FMQJIMyoMC6hiSINCCKRRMlJ+YthG2wLcYQ3Mp8QB vyHf7/hBh9qK/lUoIJgDpDn1kHYACm2Vo10I3LDhEIafZNAveS/KUNFcbSsZN0Zz hcPEyDf6MR3Bdf+twGWGYFPTDbO1XDksQqoCHWBRNLVBCxcEvcvmNHYi+IAJNvct 0QI497ncLDKEC4953yQcXnlMtxPa6E7iNBBbGm6SACpC++8o+JeXVOcJDzOVmfF8 /wdCQb8JGpP1mNASh2of8LSvRlogtqPxFA6RO+kMlM1EAsoVv9VpPMv3eYXMHap7 qdu+TOpRq+ZuEIBmAYwMfg4BFXGQw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrieehgddujedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeehtddrudeljedrkedtrddvne curfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghv vghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id DB30180060; Fri, 11 Oct 2019 18:06:09 -0400 (EDT) Subject: Re: got error: DELETE FROM planet_osm_line WHERE osm_id = -390840 failed: FEHLER: tuple concurrently updated To: wambacher@posteo.de, pgsql-general@lists.postgresql.org References: <3e664979-a015-bf0c-0569-82b2a797f6a7@aklaver.com> <88cb51a4-3c8d-d62d-e4e3-106f7da1de47@posteo.de> From: Adrian Klaver Message-ID: <0bed370e-33fb-b7a6-dc30-02ba697164b5@aklaver.com> Date: Fri, 11 Oct 2019 15:06:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <88cb51a4-3c8d-d62d-e4e3-106f7da1de47@posteo.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/11/19 1:56 PM, wambacher@posteo.de wrote: > Hi Adrin, > > Am 11.10.19 um 21:42 schrieb Adrian Klaver: >> On 10/11/19 10:28 AM, wambacher@posteo.de wrote: >>> Hi, after a crash i get this errpor: DELETE FROM planet_osm_line >>> WHERE osm_id = -390840 failed: FEHLER:  tuple concurrently updated >>> >>> any idea what i can do? >> >> More information would be helpful: >> >> 1) Postgres version? > 10.1 >> >> 2) What is logged just before the crash? > will have to check this later. >> >> 3) By crash do you mean the Postgres server shuts down? > no, system hang and i had to do a power reset (nothing else helped) By system do you mean just Postgres or the computer as a whole? >> >> 4) Does this happen every time you delete -390840? > yes >> >> 5) Is -390840 really the value? > yes >> If so what is the definition for the osm_id column? > > bigint, > > index "planet_osm_line_pkey" btree (osm_id), Tablespace »planet3_is1 Have you tried a REINDEX? > > and there is no trigger on this table. > > i wrote a pg/plsql function reading the table line by line using an > exception condition and writing all records to a new table. program is > running and some records have been ignored. it is quite easy to re-add > the missing records - hope so. > > regards > > walter > > > > > -- Adrian Klaver adrian.klaver@aklaver.com