From: Richard Huxton <dev@archonet.com>
To: A. R. Van Hook <hook@lake-lotawana.mo.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: new rule syntax?
Date: Mon, 06 Feb 2006 09:49:19 +0000
Message-ID: <43E71B9F.5090207@archonet.com> (raw)
In-Reply-To: <43E5E8D2.6020502@lake-lotawana.mo.us>
References: <43E5E8D2.6020502@lake-lotawana.mo.us>
A. R. Van Hook wrote:
> I have two tables defined as:
> checks
> (ckid int NOT null PRIMARY KEY,
> payto text,
> notes text,
> ckdate date,
> printed int default 0,
> tdate timestamp not null)
> checkitems
> (item int not null,
> ckid int NOT null references checks,
> itemtype int not null,
> amt numeric(7,3),
> primary key (item, ckid))
>
> in previous versions (<8.1) the following rule declaration seemed to
> work fine
Others have addresses your query with the rule. Can I ask why you're not
using a DELETE CASCADE on the fkey?
...
ckid int NOT null references checks ON DELETE CASCADE,
...
--
Richard Huxton
Archonet Ltd
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: dev@archonet.com, hook@lake-lotawana.mo.us
Subject: Re: new rule syntax?
In-Reply-To: <43E71B9F.5090207@archonet.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