Re: Tuple concurrency issue in large objects - Mailing list pgsql-general

From Tom Lane
Subject Re: Tuple concurrency issue in large objects
Date
Msg-id 7594.1576689127@sss.pgh.pa.us
Whole thread Raw
In response to Re: Tuple concurrency issue in large objects  (Justin <zzzzz.graf@gmail.com>)
Responses Re: Tuple concurrency issue in large objects
List pgsql-general
Justin <zzzzz.graf@gmail.com> writes:
> I now see what is causing this specific issue...
> The update and row versions is happening on 2kb chunk at a time,  That's
> going to make tracking what other clients are doing a difficult task.

Yeah, it's somewhat unfortunate that the chunkiness of the underlying
data storage becomes visible to clients if they try to do concurrent
updates of the same large object.  Ideally you'd only get a concurrency
failure if you tried to overwrite the same byte(s) that somebody else
did, but as it stands, modifying nearby bytes might be enough --- or
not, if there's a chunk boundary between.

On the whole, though, it's not clear to me why concurrent updates of
sections of large objects is a good application design.  You probably
ought to rethink how you're storing your data.

            regards, tom lane



pgsql-general by date:

Previous
From: Justin
Date:
Subject: Re: Tuple concurrency issue in large objects
Next
From: Justin
Date:
Subject: Re: Tuple concurrency issue in large objects