Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 89456B5DC0D for ; Mon, 29 Aug 2011 23:38:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 61318-04 for ; Tue, 30 Aug 2011 02:38:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f42.google.com (mail-pz0-f42.google.com [209.85.210.42]) by mail.postgresql.org (Postfix) with ESMTP id 6429FB5DC0C for ; Mon, 29 Aug 2011 23:38:41 -0300 (ADT) Received: by pzk37 with SMTP id 37so15873782pzk.15 for ; Mon, 29 Aug 2011 19:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=RW6LHsLJwfuc50XmshWOaw5lF2IPTTOoyLL4wU891Jg=; b=DKaycDLug0qS7r7MPOZWrAZULmU8Fmin5RgUoFZWbeFLneS0GYctnlLq25+jNKrGD9 U4ioqRfwVzmgA3uxI2DaF6dCkORikhadlM0rrBxAKQDVegT+vOV+ggq8jDc/x1ZjCu95 wFZQ2whVMIEZjN7Nmat3hE4yWodeCNm5sm9IE= Received: by 10.143.68.20 with SMTP id v20mr835179wfk.196.1314671921193; Mon, 29 Aug 2011 19:38:41 -0700 (PDT) Received: from [192.168.1.4] ([116.231.61.141]) by mx.google.com with ESMTPS id h4sm2782445pbt.10.2011.08.29.19.38.32 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Aug 2011 19:38:39 -0700 (PDT) Message-ID: <4E5C4CF7.8020302@gmail.com> Date: Tue, 30 Aug 2011 10:37:43 +0800 From: Rural Hunter User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: Scott Marlowe CC: pgsql-admin@postgresql.org Subject: Re: plsql gets "out of memory" References: <4E5B8FF7.4040007@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201108/233 X-Sequence-Number: 38220 Yes, seems so. I separated one of the tables having the problem and did a test. First, loaded it with original file and saw the same: invalid command then follows "out of memory". After I fixed those escape characters, the table could be loaded successfully. 于 2011/8/30 10:14, Scott Marlowe 写道: > 2011/8/29 Rural Hunter: >> 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. >