Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 8A7C29FB5A5 for ; Mon, 12 Feb 2007 04:31:54 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 81346-03 for ; Mon, 12 Feb 2007 04:31:51 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id C34A59FB59C for ; Mon, 12 Feb 2007 04:31:51 -0400 (AST) Received: from server3.office.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 4A7A67429C; Mon, 12 Feb 2007 08:21:52 +0000 (GMT) Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id 7EBA3274160; Mon, 12 Feb 2007 08:21:52 +0000 (GMT) Message-ID: <45D023A0.3040601@archonet.com> Date: Mon, 12 Feb 2007 08:21:52 +0000 From: Richard Huxton User-Agent: IceDove 1.5.0.9 (X11/20061220) MIME-Version: 1.0 To: Paul Lambert Cc: Phillip Smith , 'Joe' , pgsql-sql@postgresql.org Subject: Re: COPY FROM query. References: <00d601c74e3f$5fc59940$9b0014ac@wbaus090> <45CFBA1F.9090109@autoledgers.com.au> In-Reply-To: <45CFBA1F.9090109@autoledgers.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200702/137 X-Sequence-Number: 27471 Paul Lambert wrote: > Phillip Smith wrote: >> "Having said that, if I switch it to a forward slash it works without >> error... odd, given that weenblows standard is backslash." >> >> Yes, but PostgreSQL uses a back-slash as an escape character, which >> needs to >> be used to escape itself at an application level before the O/S gets >> to deal >> with it :) > > OK, that makes sense, cheers for the help. Almost correct - PG is moving over to a more SQL standards-based interpretation of what should be done with backslashes in strings. The old behaviour will still be available by prefixing a string with E - E'like this'. See manuals for details. -- Richard Huxton Archonet Ltd