Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 14C9A2E2E9D for ; Sat, 29 Dec 2007 00:54:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 01271-07 for ; Sat, 29 Dec 2007 00:53:57 -0400 (AST) Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id D88982E2D52 for ; Sat, 29 Dec 2007 00:54:06 -0400 (AST) Received: from [192.168.1.226] (or-69-34-217-90.sta.embarqhsd.net [69.34.217.90]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id lBT4s7tr016543 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 28 Dec 2007 20:54:08 -0800 Message-ID: <4775D2F2.4080502@commandprompt.com> Date: Fri, 28 Dec 2007 20:54:10 -0800 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Phillip Smith CC: "'Tom Lane'" , pgsql-admin@postgresql.org Subject: Re: Restoring pg_dump Backup with psql Fails References: <004b01c849cd$badabd80$9b0014ac@wbaus090> In-Reply-To: <004b01c849cd$badabd80$9b0014ac@wbaus090> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Fri, 28 Dec 2007 20:54:09 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/239 X-Sequence-Number: 27756 Phillip Smith wrote: > Sorry Tom - I should know better :) > > I've attached the first 512 lines of the output from psql. The whole output > is 3mb. > You have several problems in this dump. One it appears that some of the releations already exist. Did you by chance accidently create stuff within template1 at some point? Secondly you need to look into iconv to fix your invalid UTF8 data. Joshua D. Drake > Cheers, > ~p > >> -----Original Message----- >> From: Tom Lane [mailto:tgl@sss.pgh.pa.us] >> Sent: Saturday, 29 December 2007 13:26 >> To: Phillip Smith >> Cc: pgsql-admin@postgresql.org >> Subject: Re: [ADMIN] Restoring pg_dump Backup with psql Fails >> >> "Phillip Smith" writes: >>> But I get a whole bunch of errors, for example: >>> >>> ERROR: syntax error at or near "all" >>> LINE 1: all orders over $400.00 - freight free Order 10 of any produ... >>> ^ >> Please show us the *first* few errors, not some randomly chosen ones. >> The above looks like a COPY has failed and psql has started thinking >> that copy-data lines are commands, but how or why that happened is >> not in evidence. >> >> regards, tom lane > > > THINK BEFORE YOU PRINT - Save paper if you don't really need to print this > > *******************Confidentiality and Privilege Notice******************* > > The material contained in this message is privileged and confidential to > the addressee. If you are not the addressee indicated in this message or > responsible for delivery of the message to such person, you may not copy > or deliver this message to anyone, and you should destroy it and kindly > notify the sender by reply email. > > Information in this message that does not relate to the official business > of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta. > Weatherbeeta, its employees, contractors or associates shall not be liable > for direct, indirect or consequential loss arising from transmission of this > message or any attachments > e-mail. > > > ------------------------------------------------------------------------ > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq