RE: trouble with triggers - Mailing list pgsql-general

From Thalis A. Kalfigopoulos
Subject RE: trouble with triggers
Date
Msg-id Pine.LNX.4.21.0107171330280.9097-100000@aluminum.cs.pitt.edu
Whole thread Raw
In response to RE: trouble with triggers  ("Robert Treat" <robertt@auctionsolutions.com>)
List pgsql-general
On Tue, 17 Jul 2001, Robert Treat wrote:

> Does the function have to be written using the plpgsql language? I tried
> writing my own function using just sql and it gave the same error message. I
> did trying writing the function using pgplsql:
>
> CREATE FUNCTION formatmyname() RETURNS opaque AS '
> BEGIN
> new.name := lower(new.name);
> RETURN NEW;
> END;
> ' LANGAUGE 'pgplsql';
>
> but got back a message that pgplsql was an unrecognized langauge, so I'm
> looking for a non pgplsql solution. If I'm spinning my wheels I will work on
> getting pgplsql working, but I'm hopeing to do it with a simpler approach.

There is no 'pgplsql' language, only 'plpgsql'. Functions in sql have LANGUAGE 'sql'.

cheers,
thalis

>
> robert
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>


pgsql-general by date:

Previous
From: "tamsin"
Date:
Subject: RE: How to find out the weekday from a date???
Next
From: Janning Vygen
Date:
Subject: Re: Application Design and PostgreSQL