From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Marco Colombo <pgsql(at)esiway(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org, PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Good Delimiter for copy command |
Date: | 2009-02-17 17:55:02 |
Message-ID: | 20090217175502.GE6226@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On Tue, Feb 17, 2009 at 05:17:40PM +0100, Marco Colombo wrote:
> Tom Lane wrote:
> > Andrew Gould <andrewlylegould(at)gmail(dot)com> writes:
> >> To the list: Does pg_dump escape characters that are the same as the
> >> delimiter?
> >
> > Yes. The OP has not actually explained why he needs to pick a
> > nondefault delimiter, unless maybe it is that he wants to feed the
> > dump to some program that is too dumb to deal with escaping.
> >
> > regards, tom lane
> >
>
> Which makes me wonder, does copy accept UTF-8 input?
Yes, but...
> Is it possibile to use some unicode character which is unlikely to
> appear in the data set as delimiter? Something like U+FFFC.
No. The delimiter needs to be one byte long at the moment. The error
message you're getting probably needs an update. Bug?
> $ psql -c "\copy test from '2.txt' delimiter ●"
> ERROR: COPY delimiter must be a single character
> \copy: ERROR: COPY delimiter must be a single character
Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2009-02-17 18:02:58 | Re: [GENERAL] 8.3 doc issue |
Previous Message | David Fetter | 2009-02-17 17:53:00 | Re: hi all |
From | Date | Subject | |
---|---|---|---|
Next Message | Brendan Jurd | 2009-02-17 19:24:28 | Re: [BUGS] BUG #4660: float functions return -0 |
Previous Message | Mark Roberts | 2009-02-17 17:47:15 | Re: Good Delimiter for copy command |