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 1hdyNV-0006pl-QC for pgsql-general@arkaria.postgresql.org; Thu, 20 Jun 2019 14:49:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hdyNU-0003K3-NC for pgsql-general@arkaria.postgresql.org; Thu, 20 Jun 2019 14:49:28 +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 1hdyNT-0003Jo-Kz for pgsql-general@lists.postgresql.org; Thu, 20 Jun 2019 14:49:28 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdyNR-0007OK-06 for pgsql-general@postgresql.org; Thu, 20 Jun 2019 14:49:27 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 293E12227B; Thu, 20 Jun 2019 10:49:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 20 Jun 2019 10:49:23 -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=fm3; bh=1 Y+3lIpoOAU4UIxXfdbpx+/I8AHZEYOvHT8tswSGVjA=; b=ktWNQM3sVJcu3xLAL UTXjTSjQ9QopJexZRhoKS8njxobXVAcERE63J7QssBe4fqWSFsKUiuADGUZdc2Ot aYAnzO1xX0wdG+3zysWNatGGxy2lVUbKBSG+/h5k2ho+6Y+cPeufR15+j68JGqCa Xt44HMNaTP+2bnOQ22y1J+b1i1IrMPlXQ5gvrUbEs1S8NeJJyZXkOK9+I/0/+2MM mbVPAAdZlnCrMKEg5b4QiId5UGhY+iab+EGMEJ5DBCKPwFq2q+88s5orZWHS/M/x uFQKx7r/pZS3KFpYka6MPc2btASsqS2Mc4j0wn4e+WE4uqChYGDPlwPp9Uh+M+4b 5agyQ== 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=fm3; bh=1Y+3lIpoOAU4UIxXfdbpx+/I8AHZEYOvHT8tswSGV jA=; b=dNHJFSp9mAb4mE41316y20re/K2Ukuf1NvkgXmOwfeYpZddJ6ukm4L189 dXtuG2D0rN+79V+DfiGOyRsG9rMRvvb5w/ccRxQQKY2mQ7wDAOAbD40XO7DbLeY+ 6vEYOptKXze8QCiM9kBvPVLf2eOB1ts+5BTB2Hrk9x4PXRHPnUfbNRc7eYesWoNc 95mMhyBFeIp6I62Pnqb2ffZhfAcDnJQJr4VOPl91SpG8tUY6BzSnJ6pgqwMgVAGT KmKNgyyAq3QZcHO94al7xg9RIygKav0CD/w7fkJ/mCdTOqfPgW49ftfULMOsvtKi HsEbZeVt1Ht1kXhRE09QnoZ6qE+rA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtdeggdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepjedurddvuddvrdduhedtrddvtd dvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 4A68980066; Thu, 20 Jun 2019 10:49:21 -0400 (EDT) Subject: Re: Problem with row-level lock To: Job , "pgsql-general@postgresql.org" References: <88EF58F000EC4B4684700C2AA3A73D7A082D27F19C04@W2008DC01.ColliniConsulting.lan> <88EF58F000EC4B4684700C2AA3A73D7A082D27F19C06@W2008DC01.ColliniConsulting.lan> From: Adrian Klaver Message-ID: Date: Thu, 20 Jun 2019 07:49:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <88EF58F000EC4B4684700C2AA3A73D7A082D27F19C06@W2008DC01.ColliniConsulting.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/19/19 9:06 AM, Job wrote: > Hi guys, > > i am struggling with a problem due, sometime, to a double concurrent update on the same row of a table. What is the error message you get? > > Since the client application cannot be control, i need to manage - in order to avoid this situation - the lock of a record due to two updates at the same time. > Is there way to force serializing, i don't know how, the updates on the same row in order to avoid this locks? > > Thank you, cheers! > > FC > > > -- Adrian Klaver adrian.klaver@aklaver.com