pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: girish R G peetle <giri.anamika0@gmail.com>
To: Albe Laurenz <laurenz.albe@wien.gv.at>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Need to calculate total size of a table along with BLOB data assosciated with it.
Date: Tue, 22 Sep 2015 22:16:54 +0530
Message-ID: <CAKKd06722UFzLUiXfJO2WHwAVkrH0CugLTOdQfbVTtBQ3-80Cw@mail.gmail.com> (raw)
In-Reply-To: <A737B7A37273E048B164557ADEF4A58B50FAA817@ntex2010i.host.magwien.gv.at>
References: <CAKKd064QZgHMM6sLqoX0qnyXED60Vv8fwN2mF9BvR8zCehAfyg@mail.gmail.com>
	<A737B7A37273E048B164557ADEF4A58B50FA8EB2@ntex2010i.host.magwien.gv.at>
	<CAKKd0641+_vFKiRM4GNxO3bEaqM9JevtsuW1fr-rNAiYfqxP3Q@mail.gmail.com>
	<A737B7A37273E048B164557ADEF4A58B50FAA817@ntex2010i.host.magwien.gv.at>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Thanks Laurenz and Guillaume, got clarity on how it works.
Ran few tests and you are right, size restriction applies for
pg_catalog.pg_largeobject(as it is the common place where BLOB data is
stored) in case of TAR format.

On Mon, Sep 21, 2015 at 2:47 PM, Albe Laurenz <laurenz.albe@wien.gv.at>
wrote:

> girish R G peetle wrote:
> > Got it. Thanks Laurenz.
> > One thing is little confusing, if large objects don't belong to a table,
> then how does restriction of
> > 8GB table size for TAR format is applicable if BLOB data is involved.
> > Is it  (Regular Table Data size) + (BLOB data held by OID stored in the
> table) ?
>
> What is the command you use to dump table + large objects?
>
> I guess that the large objects make up more than 8 GB and are dumped as a
> single file.  8 GB is the size limit of a single file in a TAR archive.
>
> > If just OID of a large object is copied to a different table say
> 'Table2'. Then for 'Table2' as well
> > should I calculate the total size as (Regular Table Data size) + (BLOB
> data held by OID stored in the
> > table) ?
>
> That's exactly the problem: large objects don't technically belong to the
> table
> which references them.  If you reference a large object from more than one
> table, there's no good way of defining to which it belongs.
>
> But that's irrelevant to the problem of files in a dump exceeding the
> limit of 8 GB,
> isn't it?  If you sump with the --blobs option, all large objects in the
> whole database
> will be dumped, no matter if they are referenced from a table or not.
>
> Yours,
> Laurenz Albe
>

view thread (6+ messages)

Message-ID: <CAKKd06722UFzLUiXfJO2WHwAVkrH0CugLTOdQfbVTtBQ3-80Cw@mail.gmail.com>
Permalink:  ../CAKKd06722UFzLUiXfJO2WHwAVkrH0CugLTOdQfbVTtBQ3-80Cw@mail.gmail.com/
Also on:    postgresql.org/message-id/CAKKd06722UFzLUiXfJO2WHwAVkrH0CugLTOdQfbVTtBQ3-80Cw@mail.gmail.com

 · 

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-admin@postgresql.org
  Cc: giri.anamika0@gmail.com, laurenz.albe@wien.gv.at
  Subject: Re: Need to calculate total size of a table along with BLOB data assosciated with it.
  In-Reply-To: <CAKKd06722UFzLUiXfJO2WHwAVkrH0CugLTOdQfbVTtBQ3-80Cw@mail.gmail.com>
  References: <CAKKd064QZgHMM6sLqoX0qnyXED60Vv8fwN2mF9BvR8zCehAfyg@mail.gmail.com> <A737B7A37273E048B164557ADEF4A58B50FA8EB2@ntex2010i.host.magwien.gv.at> <CAKKd0641+_vFKiRM4GNxO3bEaqM9JevtsuW1fr-rNAiYfqxP3Q@mail.gmail.com> <A737B7A37273E048B164557ADEF4A58B50FAA817@ntex2010i.host.magwien.gv.at> <CAKKd06722UFzLUiXfJO2WHwAVkrH0CugLTOdQfbVTtBQ3-80Cw@mail.gmail.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