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



---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply via email to