pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Lambert <paul.lambert@autoledgers.com.au>
To: pgsql-sql@postgresql.org
Subject: Re: Issue with copying data from a text file.
Date: Tue, 20 Mar 2007 12:21:45 +0900
Message-ID: <45FF5349.1020406@autoledgers.com.au> (raw)
In-Reply-To: <1174359924.10466.32.camel@it-laptop>
References: <45FF4622.2010404@autoledgers.com.au>
	<1174358236.10466.14.camel@it-laptop>
	<45FF4AA3.4060808@autoledgers.com.au>
	<b35603930703191953g73e0e28bl3012e7b6836ba780@mail.gmail.com>
	<45FF4DFA.1020202@autoledgers.com.au>
	<1174359924.10466.32.camel@it-laptop>

Phillip Smith wrote:
> Maybe use char 254 or 253 or something similar... Anything that isn't 
> going to be found in the file.
> 
> Have you tried using a string as a delimiter? QUOTE 
> 'THIS.STRING.ISNT.IN.THE.TEXT.FILE'
> 
> ~p
> 

I changed it to QUOTE '\f' to set the quote character to form-feed which 
is not going to appear in the file and that appears to do the trick 
without any changes to the source file.

Thanks,
P.

-- 
Paul Lambert
Database Administrator
AutoLedgers



view thread (9+ messages)  latest in thread

Message-ID: <45FF5349.1020406@autoledgers.com.au>
Permalink:  ../45FF5349.1020406@autoledgers.com.au/
Also on:    postgresql.org/message-id/45FF5349.1020406@autoledgers.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: paul.lambert@autoledgers.com.au
  Subject: Re: Issue with copying data from a text file.
  In-Reply-To: <45FF5349.1020406@autoledgers.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox