Problem
I am trying to store value in a TEMPORARY table and I am getting the
following error
ERROR: relation with OID 51533 does not exist
Trigger
CREATE TRIGGER "createtemporytable" AFTER INSERT
ON "component" FOR EACH ROW
EXECUTE PROCEDURE "createtemp"();
Function
begin
CREATE temporary TABLE primarykey
(
componentpk Integer,
plannerpk Integer,
materialplanpk Integer,
resourceplanpk Integer
);
INSERT INTO primarykey(componentpk)
VALUES (new."primary");
UPDATE component
set "notes" = 'Updated'
where component."primary" = primarykey.componentpk;
end