From: Josh Berkus <josh@agliodbs.com>
To: Albrecht Berger <berger1517@gmx.ch>
To: pgsql <pgsql-sql@postgresql.org>
Subject: Re: something similar to "on delete cascade" ?
Date: Fri, 28 Jun 2002 14:33:31 -0700
Message-ID: <200206281433.31804.josh@agliodbs.com> (raw)
In-Reply-To: <012201c21edd$2a992340$a07ba8c0@wxp>
References: <012201c21edd$2a992340$a07ba8c0@wxp>
Berger,
> My problem is that i don't want to delete datarows, but to set a "deleted"
> flag.
> In every by a foreign key "linked" row should this deleted flag set
> automatically.
You need to create a custom TRIGGER or RULE. The online docs have extensive
instructions and examples of triggers and rules.
--
-Josh Berkus
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
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: josh@agliodbs.com, berger1517@gmx.ch
Subject: Re: something similar to "on delete cascade" ?
In-Reply-To: <200206281433.31804.josh@agliodbs.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