Re: rules

From: "Jie Liang" <jie(at)stbernard(dot)com>
To: "Jie Liang" <jie(at)stbernard(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "postgres-list" <pgsql-admin(at)postgresql(dot)org>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: rules
Date: 2004-05-19 17:41:57
Message-ID: E7E213858379814A9AE48CA6754F5ECB1E1FCA@mail01.stbernard.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

Sorry, wrong question.

-----Original Message-----
From: Jie Liang
Sent: Wednesday, May 19, 2004 10:20 AM
To: Tom Lane
Cc: postgres-list; pgsql-sql(at)postgresql(dot)org
Subject: [ADMIN] rules

According to the document of rule:

CREATE RULE rulename AS ON delete TO mytablename DO
(
delete from aaa where id=OLD.id;
Delete from bbb where id=OLD.id;
Delete from ccc where id=OLD.id
);

Should work, but it doesn't, what wrong with it?
Even I use { .... }

Jie Liang

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if
your
joining column's datatypes do not match

Browse pgsql-admin by date

  From Date Subject
Next Message Stephan Szabo 2004-05-19 17:50:34 Re: [SQL] rules
Previous Message Tony Reina 2004-05-19 17:25:18 Re: Postgresql ssl mode

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2004-05-19 17:50:34 Re: [SQL] rules
Previous Message Martin Knipper 2004-05-19 17:41:21 Re: Function valid only for one table