Re: out of memory error with loading pg_dumpall

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dara Olson" <dolson(at)glifwc(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: out of memory error with loading pg_dumpall
Date: 2011-12-21 01:16:35
Message-ID: 23053.1324430195@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Dara Olson" <dolson(at)glifwc(dot)org> writes:
> I am attempting to create an exact copy of our production database/cluster on a different server for development. I created a 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 a string of "invalid command \N" lines" and then "out of memory" in the command prompt and then in the postgres log it states at 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dinesh Kumara 2011-12-21 05:36:25 Cursor loop - stop current iteration and continue with next iteration
Previous Message Adrian Klaver 2011-12-21 00:47:19 Re: Escaping input from COPY