Re: psql copy command - 1 char limitation on delimiter

From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: rey <reywang(at)optonline(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: psql copy command - 1 char limitation on delimiter
Date: 2010-09-29 18:36:14
Message-ID: 4CA3871E.4020608@pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 09/25/2010 07:03 AM, Tom Lane wrote:
> rey<reywang(at)optonline(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Bex 2010-09-29 18:41:42 Re: Prepared statements and unknown types
Previous Message Thom Brown 2010-09-29 18:33:53 Re: Prepared statements and unknown types