Re: Executing plpgsql scripts using psql, is that possible?

From: Daniel CAUNE <d(dot)caune(at)free(dot)fr>
To: aklaver(at)comcast(dot)net, pgsql-sql(at)postgresql(dot)org
Subject: Re: Executing plpgsql scripts using psql, is that possible?
Date: 2006-01-17 03:10:34
Message-ID: 0IT70020VVHQZ391@VL-MO-MR003.ip.videotron.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


> If you want to use plpgsql it will need to be within a function. In your
> reply
> you mention creating user-defined functions as part of the set up
> procedure.
> It would not be weird to include the static data function as part of that
> procedure and then call it to load the data. I see no reason to destroy
> the
> function after use. If that is not the route you want to take you may want
> to
> look at the following for information on using COPY to load data from a
> file
> into a table-
> www.postgresql.org/docs/8.1/interactive/sql-copy.html
>

Yes, COPY may be an interesting option too.

Thanks!

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Glaesemann 2006-01-17 07:20:23 Re: Characters that needs escape characters when inserting to database
Previous Message John DeSoi 2006-01-17 02:54:55 Re: Executing plpgsql scripts using psql, is that possible?