Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 083199FB280 for ; Mon, 23 Oct 2006 07:28:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 74690-07 for ; Mon, 23 Oct 2006 07:28:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from matrix.gatewaynet.com (host2.dynacom.ondsl.gr [62.103.35.210]) by postgresql.org (Postfix) with ESMTP id A58E89FA3AD for ; Mon, 23 Oct 2006 07:28:06 -0300 (ADT) Received: from host3.dynacom.ondsl.gr ([62.103.35.211] helo=ip216.internal.net) by matrix.gatewaynet.com with esmtp (Exim 4.62) (envelope-from ) id 1Gbx2I-0000OO-Sj for pgsql-sql@postgresql.org; Mon, 23 Oct 2006 13:28:02 +0300 From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: pgsql-sql@postgresql.org Subject: Re: delete on cascade Date: Mon, 23 Oct 2006 13:28:01 +0300 User-Agent: KMail/1.9.3 References: <200610231049.16507.fluca1978@infinito.it> <200610231200.20932.achill@matrix.gatewaynet.com> <200610231150.18115.fluca1978@infinito.it> In-Reply-To: <200610231150.18115.fluca1978@infinito.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200610231328.02176.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.073 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, SPF_HELO_SOFTFAIL, SPF_SOFTFAIL X-Spam-Level: ** X-Archive-Number: 200610/202 X-Sequence-Number: 26591 =D3=F4=E9=F2 =C4=E5=F5=F4=DD=F1=E1 23 =CF=EA=F4=FE=E2=F1=E9=EF=F2 2006 12:5= 0, =EF/=E7 Luca Ferrari =DD=E3=F1=E1=F8=E5: > On Monday 23 October 2006 11:00 Achilleas Mantzios's cat, walking on the > > keyboard, wrote: > > not right!!! > > ON DELETE CASCADE is specified in FOREIGN KEY contsraints. > > So that would be in ass_sf table. > > If you find ALTER TABLE ass_sf command hard to run, then drob your > > ass_sf table and define it like > > Sorry, but this would define that when I delete a row on ass_sf also the > skin and the family will be deleted, right? Not right. This would specify quite the opposite. > I would like to get the=20 > opposite behaviour: when I delete a skill also its association on ass_sf > will be deleted. Is this possible? Absolutely, and this is done in the way i just described. In any case I would recommend reading the docs. > > Thanks, > Luca > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq =2D-=20 Achilleas Mantzios