Re: PL/pgSQL Trigger Problems
От | Gregory Wood |
---|---|
Тема | Re: PL/pgSQL Trigger Problems |
Дата | |
Msg-id | 003901c0696a$dbf1ca40$7889ffcc@comstock.com обсуждение исходный текст |
Ответ на | PL/pgSQL Trigger Problems ("Gregory Wood" <gregw@com-stock.com>) |
Список | pgsql-general |
Apologies for replying directly back to you Dan, I'm used to replying back to the list automatically... guess I got spoiled =) Sadly, that doesn't appear to be it, unless there is something wrong with the order of these operations: DROP TRIGGER emp_stamp ON emp; DROP FUNCTION emp_stamp(); DROP TABLE emp; CREATE TABLE emp (... CREATE FUNCTION emp_stamp () RETURNS OPAQUE AS '... CREATE TRIGGER emp_stamp BEFORE INSERT OR UPDATE ON emp... COMMIT; INSERT INTO emp (empname,salary) VALUES ('John Doe',100000); Any other suggestions? > You dropped your function and recreated it, but did not drop your trigger. > It is still linked to the old version of your function. Just drop your > trigger and recreate it and it should work fine. > > Earlier, it was telling me that there was a Parse Error when I tried to > > insert a value. Currently the error message I get is: "fmgr_info: function > > 4605120: cache lookup failed"
В списке pgsql-general по дате отправления: