Re: plsql gets "out of memory"

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Rural Hunter <ruralhunter(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: plsql gets "out of memory"
Date: 2011-08-30 02:14:40
Message-ID: CAOR=d=1bAp7+tLo9J3UjWue4XCRiHw0PwWC0btcDUjUauWQbzg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

2011/8/29 Rural Hunter <ruralhunter(at)gmail(dot)com>:
> Hi all,
> I'm a newbie here. I'm trying to test pgsql with my mysql data. If the
> performance is good, I will migrate from mysql to pgsql.
> I installed pgsql 9.1rc on my Ubuntu server. I'm trying to import a large
> sql file dumped from mysql into pgsql with 'plsql -f'. The file is around
> 30G with bulk insert commands in it. It rans several hours and then aborted
> with an "out of memory" error. This is the tail of the log I got:
> INSERT 0 280
> INSERT 0 248
> INSERT 0 210
> INSERT 0 199
> invalid command \n
> out of memory

I'd look at what's leading to the invalid command \n up there. I
doubt the out of memory is more than a symptom from that. I.e. some
part of your inserts are improperly formatted and the machine is then
trying to insert a row with what it thinks is a column of several
gigabytes.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Rural Hunter 2011-08-30 02:37:43 Re: plsql gets "out of memory"
Previous Message Rural Hunter 2011-08-30 01:29:56 Re: plsql gets "out of memory"