From: Bruno Wolff III <bruno@wolff.to>
To: Glenn MacGregor <gtm@highstreetnetworks.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Cascade delete question
Date: Thu, 22 Apr 2004 22:03:27 -0500
Message-ID: <20040423030327.GA828@wolff.to> (raw)
In-Reply-To: <40882F27.2050900@highstreetnetworks.com>
References: <40882F27.2050900@highstreetnetworks.com>
On Thu, Apr 22, 2004 at 16:46:31 -0400,
Glenn MacGregor <gtm@highstreetnetworks.com> wrote:
>
> No problem this works great!
>
> Now I have changed my data to
>
> vid vname parentname
> 1 n1@test.com
> 2 n2@test.com n1
> 3 n3@test.com n1
> 4 n4@test.com n1
> 5 n5@test.com n3
>
> Can I change my delete cascade constraint to do this substring query
> instead of an exact match?
No.
> Is there anyway to accomplish what I need to do?
If the local part of the email address is a candidate key, separate it
from the domain name and make it the primary key.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bruno@wolff.to, gtm@highstreetnetworks.com
Subject: Re: Cascade delete question
In-Reply-To: <20040423030327.GA828@wolff.to>
References: <40882F27.2050900@highstreetnetworks.com> <20040423030327.GA828@wolff.to>
* 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