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 1ifjY1-00050M-BB for pgsql-general@arkaria.postgresql.org; Fri, 13 Dec 2019 11:55:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ifjXx-0007pS-II for pgsql-general@arkaria.postgresql.org; Fri, 13 Dec 2019 11:55:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ifjXx-0007pK-5W for pgsql-general@lists.postgresql.org; Fri, 13 Dec 2019 11:55:49 +0000 Received: from mail.verite.pro ([185.16.44.216]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ifjXp-0003jr-Q2 for pgsql-general@postgresql.org; Fri, 13 Dec 2019 11:55:48 +0000 Received: from genius-map.net (verite.pro [195.154.189.246]) by mail.verite.pro (Postfix) with ESMTP id 3944A8C00D5; Fri, 13 Dec 2019 12:48:24 +0100 (CET) Received: by genius-map.net (Postfix, from userid 1001) id B5C9838A0E74; Fri, 13 Dec 2019 12:55:36 +0100 (CET) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: Tuple concurrency issue in large objects From: "Daniel Verite" To: "Shalini" Cc: "Rene Romero Benavides" ,"Postgres General" In-Reply-To: Date: Fri, 13 Dec 2019 12:55:34 +0100 Message-Id: <6afceeda-e645-4892-8cd6-a5bd1fea54bd@manitou-mail.org> X-Mailer: Manitou v1.7.3 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Shalini wrote: > > Is there a workaround to this concurrency issue without creating a > > new large object? The transaction failing with the "Tuple concurrently updated" error could be resubmitted by the client, as if it was a serialization failure. Or the failure could be prevented by using advisory locks: https://www.postgresql.org/docs/current/explicit-locking.html Best regards, --=20 Daniel V=E9rit=E9 PostgreSQL-powered mailer: http://www.manitou-mail.org Twitter: @DanielVerite