[SQL] create temp table in rule

2006-04-18 Thread Ron Peterson
Is it possible to create a temporary table within a rule? I get a syntax error near 'CREATE TEMPORARY TABLE' if I try to do the following: CREATE RULE id_insert_rule AS ON INSERT TO id_insert DO INSTEAD ( CREATE TEMPORARY TABLE id_temp ( LIKE id ) ON COMMIT DELETE ROWS; INSERT INTO i

Re: [SQL] create temp table in rule

2006-04-18 Thread Tom Lane
Ron Peterson <[EMAIL PROTECTED]> 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 ---