Re: something similar to "on delete cascade" ?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "Albrecht Berger" <berger1517(at)gmx(dot)ch>, "pgsql" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: something similar to "on delete cascade" ?
Date: 2002-06-28 21:33:31
Message-ID: 200206281433.31804.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


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(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Kelly 2002-06-28 22:31:27 pg_group members
Previous Message Jie Liang 2002-06-28 20:49:34 Re: pg_restore cannot restore function