Re: Adding support for plpgsql - Mailing list pgsql-docs

From Roberto Mello
Subject Re: Adding support for plpgsql
Date
Msg-id 20010502140506.B19921@cc.usu.edu
Whole thread Raw
In response to Adding support for plpgsql  (Mike Cianflone <mcianflone@littlefeet-inc.com>)
List pgsql-docs
On Wed, May 02, 2001 at 10:46:51AM -0700, Mike Cianflone wrote:
>     I'm trying to create a procedure that uses plpgsql, but the db tells
> me that that language is not supported when creating the function. I copied
> an example for creating the function using plpgsql. I see the CREATE
> PROCEDURAL LANGUAGE command in the manual, but does plpgsql come standard?
> Do I need to install an optional package to get the db to recognize plpgsql
> functions?

    Use the "createlang" command (as postgres):

    createlang plpgsql mydb

    where "mydb" is your database name. If you do a createlang on the
template1 database, it'll be added to any other databases you create by
default.

    -Roberto
--
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+
  Roberto Mello - Computer Science, USU - http://www.brasileiro.net
       http://www.sdl.usu.edu - Space Dynamics Lab, Developer
Rauchen ist super: es vernichtet alle Raucher...

pgsql-docs by date:

Previous
From: Mike Cianflone
Date:
Subject: Adding support for plpgsql
Next
From: Bruce Momjian
Date:
Subject: Update for SHMALL