RE: trouble with triggers

From: "Thalis A(dot) Kalfigopoulos" <thalis(at)cs(dot)pitt(dot)edu>
To: Robert Treat <robertt(at)auctionsolutions(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: RE: trouble with triggers
Date: 2001-07-17 17:35:04
Message-ID: Pine.LNX.4.21.0107171330280.9097-100000@aluminum.cs.pitt.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Janning Vygen 2001-07-17 18:08:37 Re: Application Design and PostgreSQL
Previous Message Ryan Mahoney 2001-07-17 17:29:30 Foreign Keys