Rule

From: Andriy Pyrozhenko <andriy(dot)pyrozhenko(at)vanjaonline(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Rule
Date: 2001-11-20 13:38:45
Message-ID: 7524444939.20011120153845@vanjaonline.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello pgsql-sql,

I have the rule for table
CREATE RULE del_jobs_del_activity AS ON DELETE TO jobs DO DELETE FROM activities WHERE job_id = OLD.job_id;

When i call:
DELETE FROM jobs WHERE job_id IN (SELECT DISTINCT job_id FROM
activities WHERE load_no = 123)
This query does not delete the record from jobs but delete the
record by rule.

What must I change for work this query correctly?

Best regards,
Andriy mailto:andriy(dot)pyrozhenko(at)vanjaonline(dot)com

Responses

  • Re: Rule at 2001-11-20 15:24:29 from Tom Lane

Browse pgsql-sql by date

  From Date Subject
Next Message Jodi Kanter 2001-11-20 13:39:42 database cluster
Previous Message Miguel Gonzalez 2001-11-20 13:02:53 Genetic algorithms