Re: PL/PGSQL and external (flat ASCII) files - Urgent ... :)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris Ruprecht <chrup999(at)yahoo(dot)com>
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: PL/PGSQL and external (flat ASCII) files - Urgent ... :)
Date: 2001-07-17 23:19:44
Message-ID: 28799.995411984@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Chris Ruprecht <chrup999(at)yahoo(dot)com> writes:
> If life was easy, everything would just come in the format I'd like it. But
> since it isn't, I need to create records like this one:
> ...
> From an input file where the records looks like this one:

If it's just a data import issue, why do you want to do it in a plpgsql
function? Do the format massaging on the client side. I'd think about
making a simple little sed or perl script (or whatever text-masher you
like) producing data that COPY would take.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2001-07-17 23:31:41 Re: PL/PGSQL and external (flat ASCII) files - Urgent ... :)
Previous Message Chris Ruprecht 2001-07-17 22:45:33 Re: PL/PGSQL and external (flat ASCII) files - Urgent ... :)