Function Problem

From: Jamie Deppeler <jamie(at)doitonce(dot)net(dot)au>
To: pgsql-general(at)postgresql(dot)org
Subject: Function Problem
Date: 2004-12-05 23:34:12
Message-ID: 41B39AF4.4090701@doitonce.net.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2004-12-05 23:51:16 Re: SSL confirmation
Previous Message Michael Fuhr 2004-12-05 23:29:12 Re: SSL confirmation