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 1iJ1xx-0003IA-9S for pgsql-general@arkaria.postgresql.org; Fri, 11 Oct 2019 20:56:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iJ1xv-0004Z5-Kr for pgsql-general@arkaria.postgresql.org; Fri, 11 Oct 2019 20:56:47 +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 1iJ1xv-0004Yv-9S for pgsql-general@lists.postgresql.org; Fri, 11 Oct 2019 20:56:47 +0000 Received: from mout02.posteo.de ([185.67.36.66]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJ1xp-0000oL-2g for pgsql-general@lists.postgresql.org; Fri, 11 Oct 2019 20:56:46 +0000 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 37F162400E5 for ; Fri, 11 Oct 2019 22:56:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1570827399; bh=4fuN/XUqGkEOVwbTnRL7Ihc2aR3BZcnnXJFKm1HSdzg=; h=Subject:To:From:Date:From; b=UDPFMFYbNopO8chKs1xoswXO62O73QuXPZcY9hiZi3EXnUdNGdvrpoybu6XTRfT/W AfhDGnRHnVg/INAyIdC5zOSwFjU9FV5L2AN2b7SC8jNjQb4cie84l/OU8am/re75f3 hdk2vmpwXN2kq/ZI9wolYXrdl0R9UUjS6h7doZljsy2AMFIFa/da+GkLO4p5f0byRc hswaegV8g+CexPLCnee0IMP2lBe6BjB+U5gnMdCtC4eAKFMI5y4BpD7V0+NB7U7gSr A06dcUyMrG/0hlhUdgKaTIZLulm68HDNRDg748i0YbqsYkEGznRAoireIiORUF14Yk m0zMJWiAKlm4Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 46qgH96YZzz9rxL for ; Fri, 11 Oct 2019 22:56:37 +0200 (CEST) Subject: Re: got error: DELETE FROM planet_osm_line WHERE osm_id = -390840 failed: FEHLER: tuple concurrently updated To: pgsql-general@lists.postgresql.org References: <3e664979-a015-bf0c-0569-82b2a797f6a7@aklaver.com> From: wambacher@posteo.de Message-ID: <88cb51a4-3c8d-d62d-e4e3-106f7da1de47@posteo.de> Date: Fri, 11 Oct 2019 22:56:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <3e664979-a015-bf0c-0569-82b2a797f6a7@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: de-DE List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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) > > 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 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