pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-sql@postgresql.org
Subject: Re: delete on cascade
Date: Mon, 23 Oct 2006 13:28:01 +0300
Message-ID: <200610231328.02176.achill@matrix.gatewaynet.com> (raw)
In-Reply-To: <200610231150.18115.fluca1978@infinito.it>
References: <200610231049.16507.fluca1978@infinito.it>
	<200610231200.20932.achill@matrix.gatewaynet.com>
	<200610231150.18115.fluca1978@infinito.it>

Óôéò ÄåõôÝñá 23 Ïêôþâñéïò 2006 12:50, ï/ç Luca Ferrari Ýãñáøå:
> 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 
> 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

-- 
Achilleas Mantzios



view thread (8+ messages)  latest in thread

Message-ID: <200610231328.02176.achill@matrix.gatewaynet.com>
Permalink:  ../200610231328.02176.achill@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/200610231328.02176.achill@matrix.gatewaynet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: achill@matrix.gatewaynet.com
  Subject: Re: delete on cascade
  In-Reply-To: <200610231328.02176.achill@matrix.gatewaynet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox