From: | Michael Davis <mdavis(at)sevainc(dot)com> |
---|---|
To: | "'Joseph Shraibman'" <jks(at)selectacast(dot)net>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org> |
Subject: | RE: plpgsql error: cache lookup from pg_proc failed |
Date: | 2001-02-07 02:03:14 |
Message-ID: | 01C0906F.782F0190.mdavis@sevainc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Setting NEW in an AFTER update or insert trigger is not wise. Try using a before update trigger instead.
-----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 | Joseph Shraibman | 2001-02-07 02:16:35 | Re: RE: plpgsql error: cache lookup from pg_proc failed |
Previous Message | Joseph Shraibman | 2001-02-07 01:35:16 | plpgsql error: cache lookup from pg_proc failed |