ERROR: language "plpgsql" does not exist

From: "Michael" <mshi(at)cityxpress(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: ERROR: language "plpgsql" does not exist
Date: 2003-01-23 22:45:23
Message-ID: b0pra1$66l$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message codeWarrior 2003-01-23 22:45:48 Re: Pg 7.3.1 & DBD::Pg 1.21
Previous Message Enrico Comini 2003-01-23 22:41:05 pg_dump automatic