Re: [GENERAL] CREATE TEMP TABLE AS ... ON COMMIT DROP fails

2005-11-06 Thread Tom Lane
"Andrus Moor" <[EMAIL PROTECTED]> writes: > CREATE TEMP TABLE t2 AS SELECT * FROM t1 ON COMMIT DROP; > Causes ERROR: syntax error at or near "ON" at character 104 Not implemented, as the manual clearly states. > How to implement this ? Create the temp table with a plain CREATE, then fill it wit

Re: [GENERAL] CREATE TEMP TABLE AS ... ON COMMIT DROP fails

2005-11-06 Thread Rick
In article <[EMAIL PROTECTED]>, Andrus Moor <[EMAIL PROTECTED]> wrote: >I need to create temporary table with data which is dropped at end of >transaction. > >CREATE TABLE t1 ( c1 INTEGER ) ; >INSERT INTO t1 VALUES (1); >CREATE TEMP TABLE t2 AS SELECT * FROM t1 ON COMMIT DROP; > >Causes ERROR: sy

[GENERAL] CREATE TEMP TABLE AS ... ON COMMIT DROP fails

2005-11-06 Thread Andrus Moor
I need to create temporary table with data which is dropped at end of transaction. CREATE TABLE t1 ( c1 INTEGER ) ; INSERT INTO t1 VALUES (1); CREATE TEMP TABLE t2 AS SELECT * FROM t1 ON COMMIT DROP; Causes ERROR: syntax error at or near "ON" at character 104 How to implement this ? Andrus.