Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 771A84763A7 for ; Wed, 27 Nov 2002 11:58:58 -0500 (EST) Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id 6EAE847611B for ; Wed, 27 Nov 2002 11:55:45 -0500 (EST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 95498D613; Wed, 27 Nov 2002 08:55:50 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 8AC145C02; Wed, 27 Nov 2002 08:55:50 -0800 (PST) Date: Wed, 27 Nov 2002 08:55:50 -0800 (PST) From: Stephan Szabo To: fred Cc: Subject: Re: CASCADE PB In-Reply-To: <20021127165203.0DB55D60F@megazone.bigpanda.com> Message-ID: <20021127085301.E93967-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/285 X-Sequence-Number: 6473 On Wed, 27 Nov 2002, fred wrote: > Ok, > Thank you for your quick answer, > I'm affraid I made a mistake on my mail. > I really wanted to automaticly delete line in the 'fact' table when I delete > a line in the 'fact' table. > But when I suppress a line in the 'coop' table I still have the related line > in the 'fact' table. > Do you think there is a mistake in my sql syntaxe ? Not really, and on my 7.3b2 system (should be pretty much the same as 7.2.3 for the integrity constraints, since the only change I remember being made was pretty unrelated) a delete from coop deletes all the rows from fact. Can you give a complete example (including some inserts and deletes) so we can try it?