Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A6798475CF8 for ; Thu, 29 Aug 2002 12:54:18 -0400 (EDT) Received: from gateway.idealcorp.com (66-192-27-146.gen.twtelecom.net [66.192.27.146]) by postgresql.org (Postfix) with ESMTP id 0853D475C81 for ; Thu, 29 Aug 2002 12:54:18 -0400 (EDT) Received: from idealcorp.com (client07.office.ideal [192.168.1.17]) by gateway.idealcorp.com (8.12.3/8.12.3/Debian -4) with ESMTP id g7TGsNlW000837 for ; Thu, 29 Aug 2002 12:54:23 -0400 Message-ID: <3D6E51BF.1010406@idealcorp.com> Date: Thu, 29 Aug 2002 12:54:23 -0400 From: Michael Zouroudis User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en-us MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: delete with referential integrity Content-Type: multipart/alternative; boundary="------------020708040802010405050907" X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/354 X-Sequence-Number: 5468 --------------020708040802010405050907 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit i promise this will be my last post for a long time. my last problem on my db is caused by a trigger. i have three tables involved; assets, book_asset, and book. because of integrity constraints, i have to delete the record from book_asset, then book, and finally assets. all inserts, updates, and deletes are done through the assets table, and i have a trigger on assets that first deletes book_asset, then books, and finally assets. the problem is when it deletes assets on that third delete, it sends the db into a recursive loop(the delete on assets starts the trigger again). i am searching for an answer, but have not found one in the last hour and a half. if someone has encounted this problem before and knows a solution, i would be very grateful. the only thing i have found is a function called _funny_dup17()_, but this seems to be only for regression tests. besides from that, i am out of ideas. thanks, Mike Zouroudis Intern __________________________________________________ I.D.E.A.L. Technology Corporation - Orlando Office http://www.idealcorp.com - 407.999.9870 x14 --------------020708040802010405050907 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit i promise this will be my last post for a long time.  my last problem on my db is caused by a trigger.  i have three tables involved; assets, book_asset, and book.  because of integrity constraints, i have to delete the record from book_asset, then book, and finally assets.  all inserts, updates, and deletes are done through the assets table, and i have a trigger on assets that first deletes book_asset, then books, and finally assets.  the problem is when it deletes assets on that third delete, it sends the db into a recursive loop(the delete on assets starts the trigger again).  i am searching for an answer, but have not found one in the last hour and a half.  if someone has encounted this problem before and knows a solution, i would be very grateful.  the only thing i have found is  a function called funny_dup17(), but this seems to be only for regression tests.  besides from that, i am out of ideas.

thanks,

Mike Zouroudis
Intern
__________________________________________________
I.D.E.A.L. Technology Corporation - Orlando Office
http://www.idealcorp.com - 407.999.9870 x14

--------------020708040802010405050907--