On 05/08/10 06:03, Nick wrote: > Anyone? Please It's probably going to be a lot easier to do this with a stored procedure. I don't rate your chances of making it work with a rule. Rules work more like a macro system, and I'm not sure they can be convinced to do what you're trying to do. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general