Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 322769FB677 for ; Mon, 19 Mar 2007 23:45:25 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 59127-03 for ; Mon, 19 Mar 2007 23:45:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from rrmailscan3.safenetbox.biz (unknown [203.25.40.75]) by postgresql.org (Postfix) with ESMTP id 03F449FB574 for ; Mon, 19 Mar 2007 23:45:21 -0300 (ADT) Received: from rrmailscan3.safenetbox.biz (rrmailscan3.safenetbox.biz [127.0.0.1]) by rrmailscan3.safenetbox.biz (Postfix) with ESMTP id 1270C1D4844D; Tue, 20 Mar 2007 13:45:20 +1100 (EST) Received: from [127.0.0.1] (online4-new.lnk.telstra.net [139.130.169.227]) (Authenticated sender: remote) by rrmailscan3.safenetbox.biz (Postfix) with ESMTP id EBC921D4844E; Tue, 20 Mar 2007 13:45:18 +1100 (EST) Message-ID: <45FF4AA3.4060808@autoledgers.com.au> Date: Tue, 20 Mar 2007 11:44:51 +0900 From: Paul Lambert User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Phillip Smith , pgsql-sql@postgresql.org Subject: Re: Issue with copying data from a text file. References: <45FF4622.2010404@autoledgers.com.au> <1174358236.10466.14.camel@it-laptop> In-Reply-To: <1174358236.10466.14.camel@it-laptop> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/258 X-Sequence-Number: 27896 Phillip Smith wrote: > Can you not export the source file with escape characters? ie, > > ^17\" Alloy Wheels^ > > ~p > The source file comes from extracts on our main application which sits inside an in-house pretending-to-be-a-dbms file system. The content of these extracts would be difficult to change - the extract program would need to parse the data looking for quotes and preceed them with the necessary escape character. Not being a proper database dump it's not a simple matter of flicking a switch to get it to include the escape character. The way the extracts are written would require a few dozen lines of code to each extract, and theres about 40ish extracts. Plus I don't maintain that side of our code, and those that do can be a bit lazy and I'd likely be waiting months to get it done - if they even decide to do it. -- Paul Lambert Database Administrator AutoLedgers