Re: Problems backing up - Mailing list pgsql-general

From Tom Lane
Subject Re: Problems backing up
Date
Msg-id 14282.1264964558@sss.pgh.pa.us
Whole thread Raw
In response to Problems backing up  (Sebastien Boisvert <sebastienboisvert@yahoo.com>)
Responses Re: Problems backing up  (Sebastien Boisvert <sebastienboisvert@yahoo.com>)
List pgsql-general
Sebastien Boisvert <sebastienboisvert@yahoo.com> writes:
> [ COPY fails to dump a 138MB bytea column ]

If you can't switch to a 64-bit build of Postgres, you might need to
think about converting those byteas to large objects.  It's expected for
COPY to require memory space equal to several times the width of the row
it's trying to dump, because it has to have multiple copies of the row
data in order to do format conversion.  In this case the required space
seems to be going well past 1GB, so I wonder whether you are doing
anything that exacerbates the memory requirement, for instance by
forcing an encoding conversion to something other than the database's
server_encoding.

But having said that, it seems a bit odd that it is failing at what
seems to be only around 2GB of memory demand.  Even in a 32-bit build
I'd expect there to be enough address space for that, especially in
view of your very small (arguably too small) shared_buffers setting.
Are you sure the postmaster is really being started with 'unlimited'
ulimits?

            regards, tom lane

pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Versions RSS page is missing version(s)
Next
From: Mads Lie Jensen
Date:
Subject: Which version will this run on?