Ron Peterson <rpeterso(at)mtholyoke(dot)edu> writes:
> Is it possible to create a temporary table within a rule?
No, sorry. From memory, rules only allow SELECT/INSERT/UPDATE/DELETE
plus NOTIFY (and there are restrictions on the latter).
regards, tom lane