Re: Postgresql string parsing

From: Jim Nasby <jnasby(at)pervasive(dot)com>
To: Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgresql string parsing
Date: 2006-04-03 16:41:08
Message-ID: 444B1A1A-F4E2-4763-AFCA-104781C26EE2@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mar 29, 2006, at 12:19 PM, Tony Caduto wrote:
> ycrux(at)club-internet(dot)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(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim Nasby 2006-04-03 16:42:46 Re: Comparing 7.4 with 8.0
Previous Message Jim Nasby 2006-04-03 16:38:01 Re: Getting more information about errorcodes such as when these error1 happen