Re: psql copy command - 1 char limitation on delimiter - Mailing list pgsql-general

From Steve Crawford
Subject Re: psql copy command - 1 char limitation on delimiter
Date
Msg-id 4CA3871E.4020608@pinpointresearch.com
Whole thread Raw
In response to Re: psql copy command - 1 char limitation on delimiter  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: psql copy command - 1 char limitation on delimiter  (Bruce Momjian <bruce@momjian.us>)
List pgsql-general
On 09/25/2010 07:03 AM, Tom Lane wrote:
> rey<reywang@optonline.net>  writes:
>
>> Why limit this to a single character?
>>
> Performance.  Believe it or not, breaking fields at the delimiter is
> a significant factor in COPY speed.
>
>             regards, tom lane
>
>
I agree that that multi-character (or even regex) delimiters would be
useful. Would it be reasonable for the copy process to differentiate
between single character delimiters which could be processed in
"high-speed" mode and multi-character or regex delimiters which would be
available as needed albeit at the expense of a performance hit?

Cheers,
Steve


pgsql-general by date:

Previous
From: Thom Brown
Date:
Subject: Re: Prepared statements and unknown types
Next
From: Peter Bex
Date:
Subject: Re: Prepared statements and unknown types