Re: Adding support for plpgsql

Поиск
Список
Период
Сортировка
От Roberto Mello
Тема Re: Adding support for plpgsql
Дата
Msg-id 20010502140506.B19921@cc.usu.edu
обсуждение исходный текст
Ответ на Adding support for plpgsql  (Mike Cianflone <mcianflone@littlefeet-inc.com>)
Список 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 по дате отправления:

Предыдущее
От: Mike Cianflone
Дата:
Сообщение: Adding support for plpgsql
Следующее
От: Bruce Momjian
Дата:
Сообщение: Update for SHMALL