Luis Sousa <llsousa(at)ualg(dot)pt> 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