Re: Out of memory - Mailing list pgsql-admin

From Tom Lane
Subject Re: Out of memory
Date
Msg-id 25415.1311259016@sss.pgh.pa.us
Whole thread Raw
In response to Out of memory  (Johann Spies <jspies@sun.ac.za>)
Responses Re: Out of memory
List pgsql-admin
Johann Spies <jspies@sun.ac.za> writes:
> On a computer with 2G Ram running Debian Squeeze and Postgresql 8.4.8-0squeeze2
> I made a dump using 'pg_dump kb > kb.sql'.

> I copied the file to another computer with 8G RAM running Debian
> wheezy/sid/Postgresql 8.4.8-2 and tried to load that data by running
> 'psql -f kb.sql' - a process which produced a lot of errors ending with

> psql:kb.sql:4189263: invalid command \N
> psql:kb.sql:4189277: invalid command \N

Almost always, when you get a cascade of error messages, the thing to
look at is the *first* error, or first few errors.  Not the last ones.

In this case I'd guess that a COPY command failed and psql is now trying
to process the COPY data as SQL commands, but you'll never be able to
tell any more than that without seeing the error message that the COPY
reported.

            regards, tom lane

pgsql-admin by date:

Previous
From: Johann Spies
Date:
Subject: Out of memory
Next
From: David Ondrejik
Date:
Subject: Re: vacuumdb question/problem