Re: Trigger and Trigger function. - Mailing list pgsql-novice

From John DeSoi
Subject Re: Trigger and Trigger function.
Date
Msg-id f05500b250bd5d026e53da62b41e6301@pgedit.com
Whole thread Raw
In response to Trigger and Trigger function.  (Matt Iskra <Matt.Iskra@doj.ca.gov>)
Responses Re: Trigger and Trigger function.
List pgsql-novice
On Jun 16, 2005, at 6:56 PM, Matt Iskra wrote:

> CREATE FUNCTION
> oc.upd_last_touch()      <-- syntex error here
> RETURNS TRIGGER AS
> $upd_last_touch$
> BEGIN
>     IF TG_NAME = 'optical_trig' THEN
>         UPDATE optical
>         SET NEW.last_touch = current_timestamp
>         WHERE NEW.id = id;
>     END IF;
> END;
> $upd_last_touch$
> LANGUAGE 'plpgsql' VOLATILE;


I don't think $upd_last_touch$ is a legal dollar quote. It needs to be
alphanumeric characters only (no underscores).


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


pgsql-novice by date:

Previous
From: "Morgan Kita"
Date:
Subject: Basic query performance question
Next
From: Michael Fuhr
Date:
Subject: Re: Trigger and Trigger function.