Re: pg_dump out of memory for large table with LOB - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_dump out of memory for large table with LOB
Date
Msg-id 12179.1542228611@sss.pgh.pa.us
Whole thread Raw
In response to RE: pg_dump out of memory for large table with LOB  (Jean-Marc Lessard <Jean-Marc.Lessard@ultra-ft.com>)
Responses RE: pg_dump out of memory for large table with LOB
List pgsql-general
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


pgsql-general by date:

Previous
From: Nicolas Paris
Date:
Subject: Re: Default Privilege Table ANY ROLE
Next
From: Tom Lane
Date:
Subject: Re: Default Privilege Table ANY ROLE