Rule - Mailing list pgsql-sql

From Andriy Pyrozhenko
Subject Rule
Date
Msg-id 7524444939.20011120153845@vanjaonline.com
Whole thread Raw
Responses Re: Rule  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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
doesnot 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.pyrozhenko@vanjaonline.com




pgsql-sql by date:

Previous
From: "Miguel Gonzalez"
Date:
Subject: Genetic algorithms
Next
From: Tom Lane
Date:
Subject: Re: Rule