Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B593B475E8D for ; Fri, 23 Aug 2002 17:03:07 -0400 (EDT) Received: from bast.unixathome.org (bast.unixathome.org [216.187.105.150]) by postgresql.org (Postfix) with ESMTP id F3260475E80 for ; Fri, 23 Aug 2002 17:03:06 -0400 (EDT) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 6FD203F28; Fri, 23 Aug 2002 17:03:08 -0400 (EDT) From: "Dan Langille" To: Michael Zouroudis Date: Fri, 23 Aug 2002 17:05:07 -0400 MIME-Version: 1.0 Subject: Re: serious issues with TG_OP Cc: pgsql-admin@postgresql.org Message-ID: <3D666B43.22102.7088AB99@localhost> In-reply-to: <3D65BCE0.2070400@idealcorp.com> X-mailer: Pegasus Mail for Windows (v4.02) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/296 X-Sequence-Number: 5410 On 23 Aug 2002 at 0:41, Michael Zouroudis wrote: > CREATE FUNCTION pearl() RETURNS OPAQUE AS ' > > DECLARE > > t test%ROWTYPE; > o one%ROWTYPE; > x text; > y text; > z text; > a text; > xx text; > yy text; > zz text; > aa text; > > BEGIN > > > x := new.fake; > y := new.below; > z := new.above; > a := new.behind; Your problem is in the above lines. My bet: NEW will not exist upon deletes. > psql:script:9: NOTICE: INSERT xx is equal to ddd > INSERT 215042 1 > psql:script:13: NOTICE: UPDATE xx is equal to hello > UPDATE 1 > psql:script:17: NOTICE: Error occurred while executing PL/pgSQL function pearl > psql:script:17: NOTICE: line 21 at assignment > psql:script:17: ERROR: record new is unassigned yet > ------------------------------------------------------------------------------- > > the function is printing out a value for x (hello), but not deleting it. > i am lost on how to correctly assign a value for the delete. Do you know now? -- Dan Langille I'm looking for a computer job: http://www.freebsddiary.org/dan_langille.php