Re: [SQL] CREATE TEMPORARY TABLE ON COMMIT DROP

2005-09-14 Thread Tom Lane
Luis Sousa <[EMAIL PROTECTED]> writes: > But how can I create a table using a query and putting ON COMMIT DROP. You can't. Use INSERT ... SELECT to fill the table, instead. regards, tom lane ---(end of broadcast)--- TIP 1:

[SQL] CREATE TEMPORARY TABLE ON COMMIT DROP

2005-09-14 Thread Luis Sousa
Hi all, I'm tryng to write query that on commit drops the temporary table but I'm doing someting wrong. According do documentation, I can create a temporary table using this syntax: CREATE TEMP TABLE table_name AS SELECT * from table_select; or I can create a table like this: CREATE TEMP TAB

Re: [SQL] CREATE TEMPORARY TABLE .. ON COMMIT DROP question

2004-11-19 Thread Riccardo G. Facchini
--- Tom Lane <__> wrote: > "Riccardo G. Facchini" <[EMAIL PROTECTED]> writes: > > I'm trying to understand where the "[ ON COMMIT { PRESERVE ROWS | > > DELETE ROWS | DROP } ]" is stored when defining a temporary table. > > I don't believe it's stored anyplace visible :-(. There's some > private

Re: [SQL] CREATE TEMPORARY TABLE .. ON COMMIT DROP question

2004-11-19 Thread Tom Lane
"Riccardo G. Facchini" <[EMAIL PROTECTED]> writes: > I'm trying to understand where the "[ ON COMMIT { PRESERVE ROWS | > DELETE ROWS | DROP } ]" is stored when defining a temporary table. I don't believe it's stored anyplace visible :-(. There's some private state in the memory of the backend tha

[SQL] CREATE TEMPORARY TABLE .. ON COMMIT DROP question

2004-11-19 Thread Riccardo G. Facchini
Hi all, I'm trying to understand where the "[ ON COMMIT { PRESERVE ROWS | DELETE ROWS | DROP } ]" is stored when defining a temporary table. whenever a table is created, a record in the pg_class is stored with the info regarding the table, but I haven't been able to locate where the info regardin