Re: ERROR: language "plpgsql" does not exist - Mailing list pgsql-general

From Frankie
Subject Re: ERROR: language "plpgsql" does not exist
Date
Msg-id b12csi$1tcs$1@news.hub.org
Whole thread Raw
List 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@cityxpress.com> ���g���l���s�D:b0pra1$66l$1@news.hub.org...
> 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
>
>
>
>
>



pgsql-general by date:

Previous
From: "codeWarrior"
Date:
Subject: Re: What happens when you run out of transaction ID's ???
Next
From: Uroš Gruber
Date:
Subject: Re: tsearch comments