pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Verite <daniel@manitou-mail.org>
To: Shalini <shalini@saralweb.com>
Cc: Rene Romero Benavides <rene.romero.b@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Tuple concurrency issue in large objects
Date: Fri, 13 Dec 2019 12:55:34 +0100
Message-ID: <6afceeda-e645-4892-8cd6-a5bd1fea54bd@manitou-mail.org> (raw)
In-Reply-To: <d1a4d2e2-3f15-74e1-3075-6fff29010e82@saralweb.com>

	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,
-- 
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite





view thread (12+ messages)  latest in thread

Message-ID: <6afceeda-e645-4892-8cd6-a5bd1fea54bd@manitou-mail.org>
Permalink:  ../6afceeda-e645-4892-8cd6-a5bd1fea54bd@manitou-mail.org/
Also on:    postgresql.org/message-id/6afceeda-e645-4892-8cd6-a5bd1fea54bd@manitou-mail.org

 · 

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-general@postgresql.org
  Cc: daniel@manitou-mail.org, shalini@saralweb.com, rene.romero.b@gmail.com
  Subject: Re: Tuple concurrency issue in large objects
  In-Reply-To: <6afceeda-e645-4892-8cd6-a5bd1fea54bd@manitou-mail.org>
  References: <d1a4d2e2-3f15-74e1-3075-6fff29010e82@saralweb.com> <6afceeda-e645-4892-8cd6-a5bd1fea54bd@manitou-mail.org>

* 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