| From: | Joseph Shraibman <jks(at)selectacast(dot)net> |
|---|---|
| To: | "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org> |
| Cc: | "mdavis(at)sevainc(dot)com" <mdavis(at)sevainc(dot)com> |
| Subject: | Re: RE: plpgsql error: cache lookup from pg_proc failed |
| Date: | 2001-02-07 02:16:35 |
| Message-ID: | 3A80B003.63E24AA0@selectacast.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Michael Davis wrote:
>
> Setting NEW in an AFTER update or insert trigger is not wise. Try using a before update trigger instead.
>
I still get the error message.
> -----Original Message-----
> From: Joseph Shraibman [SMTP:jks(at)selectacast(dot)net]
> Sent: Tuesday, February 06, 2001 6:35 PM
> To: pgsql-sql(at)postgresql(dot)org
> Subject: plpgsql error: cache lookup from pg_proc failed
>
> playpen=# create table aa(
> playpen(# a int,
> playpen(# b int,
> playpen(# t timestamp
> playpen(# );
> CREATE
> playpen=#
> playpen=#
> playpen=# CREATE FUNCTION touch () RETURNS OPAQUE AS '
> playpen'# BEGIN
> playpen'# new.t := current_timestamp;
> playpen'# RETURN new;
> playpen'# END;
> playpen'# ' LANGUAGE 'plpgsql';
> CREATE
> playpen=#
> playpen=#
> playpen=# CREATE TRIGGER lastmod_1 AFTER update or insert ON aa FOR EACH
> ROW EXECUTE PROCEDURE touch();
> CREATE
> playpen=# insert into aa (a, b) values (1,2);
> ERROR: plpgsql: cache lookup from pg_proc failed
>
> What does this error message mean?
>
--
Joseph Shraibman
jks(at)selectacast(dot)net
Increase signal to noise ratio. http://www.targabot.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Christopher Sawtell | 2001-02-07 03:53:55 | Re: how to do plpgsql? |
| Previous Message | Michael Davis | 2001-02-07 02:03:14 | RE: plpgsql error: cache lookup from pg_proc failed |