Re: Postgresql string parsing - Mailing list pgsql-general

From Jim Nasby
Subject Re: Postgresql string parsing
Date
Msg-id 444B1A1A-F4E2-4763-AFCA-104781C26EE2@pervasive.com
Whole thread Raw
In response to Re: Postgresql string parsing  (Tony Caduto <tony_caduto@amsoftwaredesign.com>)
List pgsql-general
On Mar 29, 2006, at 12:19 PM, Tony Caduto wrote:
> ycrux@club-internet.fr wrote:
>> Hi Folks,
>> I'm looking for the fatest way to parse string in a postgresql
>> function and insert each parsed chunk in a table. Something like
>> that:
>>
>>
> You might be able to use the |string_to_array function which |
> splits a string into array elements using the provided delimiter
> which could be a EOL marker.
> Then use a loop to iterate through the  array  and  insert  into
> your  table.

Using a language other than plpgsql might also be a good idea. Perl,
for example.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



pgsql-general by date:

Previous
From: Jim Nasby
Date:
Subject: Re: Getting more information about errorcodes such as when these error1 happen
Next
From: Jim Nasby
Date:
Subject: Re: Create an index with a sort condition