| From: | "Frankie" <frankie(at)ucr(dot)com(dot)hk> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: ERROR: language "plpgsql" does not exist |
| Date: | 2003-01-27 04:35:44 |
| Message-ID: | b12csi$1tcs$1@news.hub.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hello Michael,
It seems that you haven't installed the 'plpgsql' language.
To do this, type 'createlang plpgsql your-database' under the shell prompt,
then 'plpgsql' language support is added to the database specified.
Frankie
"Michael" <mshi(at)cityxpress(dot)com> glsD:b0pra1$66l$1(at)news(dot)hub(dot)org(dot)(dot)(dot)
> I just installed the PostgreSQL7.3.1 on a linux server and trying to
create
> a function .
>
> I got the
> ERROR: language "plpgsql" does not exist
>
> Why? How can I solve this ?
>
> -- script
> CREATE FUNCTION sales_tax(INTEGER) RETURNS REAL AS
> '
> DECLARE
> subtotal ALIAS FOR $1;
> BEGIN
> return subtotal * 0.06;
> END;
> ' Language 'plpgsql';
>
>
> --
> -
> Best Regards
>
> /'"`\ zzzZ |
> ( - - ) |
> ---oooO--(_)--Oooo-----------------------------------------------------
> Life Is A Journey, Enjoy The Ride.
> **********************************************************************
> Michael Shi Database Developer
>
>
>
>
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Frankie | 2003-01-27 04:41:27 | Does plpgsql have a timeout function? |
| Previous Message | Bruce Momjian | 2003-01-27 04:24:03 | Re: When to Vacuum |