Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id F3B919FB3BB for ; Sat, 14 Oct 2006 09:25:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 32143-04 for ; Sat, 14 Oct 2006 12:25:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from obelix.askesis.nl (laudanum.demon.nl [82.161.125.16]) by postgresql.org (Postfix) with ESMTP id 9774B9FB3A6 for ; Sat, 14 Oct 2006 09:25:44 -0300 (ADT) Received: obelix 172.31.0.1 from 172.31.1.1 172.31.1.1 via HTTP with MS-WebStorage 6.0.6249 Received: from panoramix by obelix; 14 Oct 2006 14:25:42 +0200 Subject: Foreign key reference counting strategy? From: Joost Kraaijeveld To: pgsql-sql@postgresql.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sat, 14 Oct 2006 14:25:41 +0200 Message-Id: <1160828741.28838.9.camel@panoramix> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.136 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, UNPARSEABLE_RELAY X-Spam-Level: X-Archive-Number: 200610/130 X-Sequence-Number: 26519 Hi, Is there a strategy to implement reference counting for foreign keys so that if the last reference to the key is deleted, the record is deleted also? TIA -- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 web: www.askesis.nl