Re: plsql gets "out of memory"

From: Rural Hunter <ruralhunter(at)gmail(dot)com>
To: Julio Leyva <jcleyva(at)hotmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: plsql gets "out of memory"
Date: 2011-08-29 13:37:08
Message-ID: 4E5B9604.5070602@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

well, thank you for the quick reply but actually I'm not concerning the
performance as of now. My problem is related to the bulk insert of
client side program psql. Or, it's a problem of migrating vast data from
mysql to pgsql.

于2011年8月29日 21:25:29,Julio Leyva写到:
>
> check this out
> http://www.revsys.com/writings/postgresql-performance.html
>
>
> > Date: Mon, 29 Aug 2011 21:11:19 +0800
> > From: ruralhunter(at)gmail(dot)com
> > To: pgsql-admin(at)postgresql(dot)org
> > Subject: [ADMIN] plsql gets "out of memory"
> >
> > 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
> >
> > On server side, I only found these errors related to invalid UTF-8
> > characters which is related to escape characters when exported from
> mysql.
> > 2011-08-29 19:19:29 CST ERROR: invalid byte sequence for encoding
> > "UTF8": 0x00
> > 2011-08-29 19:55:35 CST LOG: unexpected EOF on client connection
> >
> > My understanding is this is a client side issue and not related to any
> > server memory setting. But how can ajust the memory setting of the psql
> > program?
> >
> > To handle the escape character '\' which is default in mysql but not in
> > pgsql, I have already made some rough modification to the exported sql
> > dump file:
> > sed "s/,'/,E'/g" |sed 's/\\0/ /g'. I guess there might still be some
> > characters missing handling and that might cause the insert command to
> > be split to several invalid pgsql commands. Would that be the cause of
> > the "out of memory" error?
> >
> >
> > --
> > Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> > To make changes to your subscription:
> > http://www.postgresql.org/mailpref/pgsql-admin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2011-08-29 13:44:48 Re: plsql gets "out of memory"
Previous Message Rural Hunter 2011-08-29 13:11:19 plsql gets "out of memory"