Re: how can i get plpgsql in function?

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: how can i get plpgsql in function?
Дата
Msg-id m3bsp8flgf.fsf@belphigor.mcnaught.org
обсуждение исходный текст
Ответ на how can i get plpgsql in function?  ("Muhammad Rusydi" <rusydi@cbn.net.id>)
Список pgsql-general
"Muhammad Rusydi" <rusydi@cbn.net.id> writes:

> > CREATE PROCEDURAL LANGUAGE 'PL/PGSQL' or something..;-)
> >
> but there's an error when i do this one
> parse error near ";" it says
> would you or anyone here help me again?

Easiest way to do this is to use the 'createlang' shell script that
ships with Postgres:

$ createlang -d <dbname> plpgsql

If you do it to the 'template1' database, all other DBs created after
that will have PL/PGSQL available.

-Doug
--
The rain man gave me two cures; he said jump right in,
The first was Texas medicine--the second was just railroad gin,
And like a fool I mixed them, and it strangled up my mind,
Now people just get uglier, and I got no sense of time...          --Dylan

В списке pgsql-general по дате отправления:

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Re: VACUUM is hanging
Следующее
От: "Muhammad Rusydi"
Дата:
Сообщение: how can i change my table/column constraint