Re: out of memory error with loading pg_dumpall - Mailing list pgsql-general

From Tom Lane
Subject Re: out of memory error with loading pg_dumpall
Date
Msg-id 23053.1324430195@sss.pgh.pa.us
Whole thread Raw
In response to out of memory error with loading pg_dumpall  ("Dara Olson" <dolson@glifwc.org>)
List pgsql-general
"Dara Olson" <dolson@glifwc.org> writes:
> I am attempting to create an exact copy of our production database/cluster on a different server for development.  I
createda dumpall file which is 8.7GB. When I attempt to run this in psql on the new server it seems okay and then I got
astring of "invalid command \N" lines" and then "out of memory" in the command prompt and then in the postgres log it
statesat the end, 

> CST LOG:  could not receive data from client: Unknown winsock error 10061
> CST LOG:  unexpected EOF on client connection

I'd suggest you need to look at the *first* message not the last one.
What it sounds like is that psql is failing on some line of COPY data
and then trying to interpret the rest of the data as SQL commands.
Why that's happening is likely to be revealed by the first few messages.

            regards, tom lane

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Escaping input from COPY
Next
From: Alban Hertroys
Date:
Subject: Re: design help for performance