Re: trouble with triggers - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: trouble with triggers
Date
Msg-id Pine.LNX.4.30.0107171743190.678-100000@peter.localdomain
Whole thread Raw
In response to trouble with triggers  ("Robert Treat" <robertt@auctionsolutions.com>)
List pgsql-general
Robert Treat writes:

> CREATE TRIGGER formatname BEFORE update OR insert ON mytable FOR EACH row
> EXECUTE PROCEDURE lower(name);
>
> however, it gives me the message:
>
> ERROR:  CreateTrigger: function lower() does not exist

No function lower() exists that has an argument signature that makes it
suitable as a trigger function.  Read your definition again; it makes no
sense because the result of lower() is not used anywhere.

Check out the programmer's guide about how to make trigger functions.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


pgsql-general by date:

Previous
From: Jose Manuel Lorenzo Lopez
Date:
Subject: Re: How to find out the weekday from a date???
Next
From: Tom Lane
Date:
Subject: Re: [SQL] epoch to show millseconds