creating a function in psql

From: rachel cox <rachel(at)kiwiconsulting(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: creating a function in psql
Date: 2000-04-05 02:55:38
Message-ID: 38EAAB2A.18802127@kiwiconsulting.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi,

i'm trying to create a very basic function in psql and i keep getting
the error:
QUERY: CREATE FUNCTION add_one () RETURNS int4 AS '
BEGIN
RETURN 1 + 1;
END;
' LANGUAGE 'plpgsql';
ERROR: Unrecognized language specified in a CREATE FUNCTION:
'plpgsql'. Recognized languages are sql, C, internal and the created
procedural languages.

does anyone know how i can get this language to be recognized?

also, this is probably related, i was trying to set the date string
using
SET DATESTYLE

and it doesn't seem to know what i'm talking about.

can anyone help??? thanks so much in advance,

rachel

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Bantos 2000-04-05 03:41:04 startup / shutdown scripts for *BSD?
Previous Message John Henderson 2000-04-04 23:12:43 Re: Fetching record of the day