On Mon, Mar 17, 2003 at 02:41:29PM -0500, Tom Lane wrote: >Yup. A rule is invoked once per query, not once per operated-on record. >You'll find that a trigger acts more like what you are expecting.
Ah, yeah, that seems to work exactly as expected. At least, my tests now pass successfully after converting from a rule to a trigger. It was a pain that trigger functions can't be SQL. I just wanted to run some SQL after the delete/insert/update, and ended up having to wrap it in a pl/python function... Thanks, Sean -- "Isn't having a smoking section in a restaurant kind of like having a peeing section in a swimming pool?" -- David Broadfoot Sean Reifschneider, Inimitably Superfluous <[EMAIL PROTECTED]> tummy.com, ltd. - Linux Consulting since 1995. Qmail, Python, SysAdmin ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])