Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 6CA0B9FB576 for ; Mon, 7 May 2007 12:02:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 78255-07 for ; Mon, 7 May 2007 12:02:53 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from web31806.mail.mud.yahoo.com (web31806.mail.mud.yahoo.com [68.142.207.69]) by postgresql.org (Postfix) with SMTP id EFFBA9FB4DC for ; Mon, 7 May 2007 12:02:52 -0300 (ADT) Received: (qmail 59402 invoked by uid 60001); 7 May 2007 14:59:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=FGRIMzHasq7lojhfWdrXSK7ixt122K6+3ARk5arnDXjRjOG0b7Klp0SUiKjmqJIrJHWdWzRE2bhhHDiyP8Dq8S8WApue/CQKr1cEHBSmqTqhUKB22rogK6BViUsffVV06nEFeLeRrAElUaTLaSjfWqbxRwptgJAItncbbileYzY=; X-YMail-OSG: GF3WpjMVM1kd0si4GhE5lZ_pxZ0Viw5Cv_Bq8a5NxY4LDqhl Received: from [63.203.180.122] by web31806.mail.mud.yahoo.com via HTTP; Mon, 07 May 2007 07:59:22 PDT Date: Mon, 7 May 2007 07:59:22 -0700 (PDT) From: Richard Broersma Jr Subject: Temporal Table Relations and Referential Integrity To: SQL Postgresql List MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <124864.59370.qm@web31806.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.611 tagged_above=0 required=5 tests=AWL=-1.004, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, DNS_FROM_RFC_WHOIS=1.447 X-Spam-Level: * X-Archive-Number: 200705/45 X-Sequence-Number: 28326 In non-temporal tables, changes to the primary key of a Parent table and record deletions can be cascaded to a related Child table using "REFERENCES Parent( Parent_code ) ON DELETE CASCADE ON UPDATE CASCADE," However, since temporal UPDATEs and DELETEs do not behave in the same way as they do in non-temporal tables, is anyone able to successfully use Referential Integrity constraints between Parent and Child tables? Or are custom triggers the only solution to maintain temporal relations between Parents and Children? My question deals specifically with the "Current" style of temporal relations, where only the currently known attributes and attribute histories are stored. As a second question, would anyone know if temporal referential integrity is targeted for future inclusion into the SQL standard? I would be happy to elaborate on what I mean by Temporal Referential-Integrity (RFI) if my questions are unclear. Regards, Richard Broersma Jr.