From: shalini@saralweb.com
To: Daniel Verite <daniel@manitou-mail.org>
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: Wed, 18 Dec 2019 07:56:31 +0530
Message-ID: <0874ff74-7ffc-4a1d-ba26-1a617bb34c59@email.android.com> (raw)
In-Reply-To: <6afceeda-e645-4892-8cd6-a5bd1fea54bd@manitou-mail.org>
<div dir='auto'>Hi,<div dir="auto"><br></div><div dir="auto">Thanks. I will try this approach.</div><div dir="auto">Could you also please state the reason why is it happening in case of large objects? Because concurrent transactions are very well handled for other data types, but the same is not happening for lobs. Is it because the fomer are stored in toast table and there is no support for concurrent txns in pg_largeobject table?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 13-Dec-2019 5:25 PM, Daniel Verite <daniel@manitou-mail.org> wrote:<br type="attribution" /><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">	Shalini wrote: <br>
<br>
> > Is there a workaround to this concurrency issue without creating a <br>
> > new large object? <br>
<br>
The transaction failing with the "Tuple concurrently updated" <br>
error could be resubmitted by the client, as if it was a <br>
serialization failure. <br>
Or the failure could be prevented by using advisory locks: <br>
https://www.postgresql.org/docs/current/explicit-locking.html <br;
<br>
<br>
Best regards, <br>
-- <br>
Daniel Vérité <br>
PostgreSQL-powered mailer: http://www.manitou-mail.org <br;
Twitter: @DanielVerite <br>
</p>
</blockquote></div><br></div>
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: shalini@saralweb.com, daniel@manitou-mail.org, rene.romero.b@gmail.com
Subject: Re: Tuple concurrency issue in large objects
In-Reply-To: <0874ff74-7ffc-4a1d-ba26-1a617bb34c59@email.android.com>
References: <6afceeda-e645-4892-8cd6-a5bd1fea54bd@manitou-mail.org> <0874ff74-7ffc-4a1d-ba26-1a617bb34c59@email.android.com>
* 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