pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Justin <zzzzz.graf@gmail.com>
Cc: Daniel Verite <daniel@manitou-mail.org>
Cc: 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: Wed, 18 Dec 2019 11:12:40 -0500
Message-ID: <5126.1576685560@sss.pgh.pa.us> (raw)
In-Reply-To: <CALL-XeOqXXd30e6Yo5_7ZURxtoMLn6SWVOA=U9SqoL1SDywB-A@mail.gmail.com>
References: <0874ff74-7ffc-4a1d-ba26-1a617bb34c59@email.android.com>
	<70757632-58a5-4bf1-a4b8-af2ed5a4fa9a@manitou-mail.org>
	<CALL-XeOqXXd30e6Yo5_7ZURxtoMLn6SWVOA=U9SqoL1SDywB-A@mail.gmail.com>

Justin <zzzzz.graf@gmail.com> writes:
> I have a question reading through this email chain.   Does Large Objects
> table using these functions work like normal MVCC where there can be two
> versions of a large object in pg_largeobject .

Yes, otherwise you could never roll back a transaction that'd modified
a large object.

> My gut says no as
> moving/copying potentially 4 TB of data would kill any IO.

Well, it's done on a per-chunk basis (normally about 2K per chunk),
so you won't do that much I/O unless you're changing all of a 4TB
object.

			regards, tom lane





view thread (12+ messages)  latest in thread

Message-ID: <5126.1576685560@sss.pgh.pa.us>
Permalink:  ../5126.1576685560@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5126.1576685560@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, zzzzz.graf@gmail.com, daniel@manitou-mail.org, shalini@saralweb.com, rene.romero.b@gmail.com
  Subject: Re: Tuple concurrency issue in large objects
  In-Reply-To: <5126.1576685560@sss.pgh.pa.us>
  References: <0874ff74-7ffc-4a1d-ba26-1a617bb34c59@email.android.com> <70757632-58a5-4bf1-a4b8-af2ed5a4fa9a@manitou-mail.org> <CALL-XeOqXXd30e6Yo5_7ZURxtoMLn6SWVOA=U9SqoL1SDywB-A@mail.gmail.com> <5126.1576685560@sss.pgh.pa.us>

* 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