From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jean-Marc Lessard <Jean-Marc.Lessard@ultra-ft.com>
Cc: Adrien Nayrat <adrien.nayrat@anayrat.info>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: pg_dump out of memory for large table with LOB
Date: Wed, 14 Nov 2018 15:50:11 -0500
Message-ID: <12179.1542228611@sss.pgh.pa.us> (raw)
In-Reply-To: <8FC5F25FF3EC4744ADFCF20CBA3F44BE016811C1EF@SRV-CAMTL-EXCH2.Forensictech.com>
References: <8FC5F25FF3EC4744ADFCF20CBA3F44BE016811BCEF@SRV-CAMTL-EXCH2.Forensictech.com>
<73d2f4fb-3da4-1c09-8bff-88a35f16bcd2@anayrat.info>
<8FC5F25FF3EC4744ADFCF20CBA3F44BE016811C1EF@SRV-CAMTL-EXCH2.Forensictech.com>
Jean-Marc Lessard <Jean-Marc.Lessard@ultra-ft.com> writes:
> Would you recommend bytea over LOB considering that the max LOB size is well bellow 1GB?
Yes, probably. The reason that pg_dump has trouble with lots of small
BLOBs is the 9.0-era decision to treat BLOBs as independent objects
having their own owners, privilege attributes, and archive TOC entries
--- it's really the per-BLOB TOC entries that are causing the issue
for you here. That model is fine as long as BLOBs are, uh, large.
If you're using them as replacements for bytea, the overhead is going
to be prohibitive.
regards, tom lane
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, Jean-Marc.Lessard@ultra-ft.com, adrien.nayrat@anayrat.info
Subject: Re: pg_dump out of memory for large table with LOB
In-Reply-To: <12179.1542228611@sss.pgh.pa.us>
References: <8FC5F25FF3EC4744ADFCF20CBA3F44BE016811BCEF@SRV-CAMTL-EXCH2.Forensictech.com> <73d2f4fb-3da4-1c09-8bff-88a35f16bcd2@anayrat.info> <8FC5F25FF3EC4744ADFCF20CBA3F44BE016811C1EF@SRV-CAMTL-EXCH2.Forensictech.com> <12179.1542228611@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