pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: BigSmoke <bigsmoke@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Delete with join -- deleting related table entries?
Date: 8 Feb 2006 09:25:59 -0800
Message-ID: <1139419559.188208.72500@g43g2000cwa.googlegroups.com> (raw)
References: <43EA26E3.9040903@obviously.com>

I'm not sure if this is true for you as I can't see your complete table
definitions, but I'd usually do this by using

  issue_id INTEGER REFERENCES issue ON DELETE CASCADE

in my column definition.

See [1] for more information.

[1]http://www.postgresql.org/docs/current/interactive/ddl-constraints.html#DDL-CONSTRAINTS-FK




view thread (10+ messages)  latest in thread

Message-ID: <1139419559.188208.72500@g43g2000cwa.googlegroups.com>
Permalink:  ../1139419559.188208.72500@g43g2000cwa.googlegroups.com/
Also on:    postgresql.org/message-id/1139419559.188208.72500@g43g2000cwa.googlegroups.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: bigsmoke@gmail.com
  Subject: Re: Delete with join -- deleting related table entries?
  In-Reply-To: <1139419559.188208.72500@g43g2000cwa.googlegroups.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