Function Problem - Mailing list pgsql-general

From Jamie Deppeler
Subject Function Problem
Date
Msg-id 41B39AF4.4090701@doitonce.net.au
Whole thread Raw
Responses Re: Function Problem
List pgsql-general
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

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: SSL confirmation
Next
From: Doug McNaught
Date:
Subject: Re: SSL confirmation