Temporary table - Mailing list pgsql-performance

From Franklin Haut
Subject Temporary table
Date
Msg-id 000001c69710$264fe940$8adb02c9@franklin
Whole thread Raw
Responses Re: Temporary table  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Temporary table  ("Larry Rosenman" <ler@lerctr.org>)
List pgsql-performance
Hello,

I´m have some problems with a temporary table, i need create a table, insert
some values, make a select and at end of transaction the table must droped,
but after i created a table there not more exist, is this normal ?

How to reproduce :


    CREATE TEMP TABLE cademp (
           codemp INTEGER,
           codfil INTEGER,
           nomemp varchar(50)
    ) ON COMMIT DROP;

    INSERT INTO cademp (codemp, codfil, nomemp) values (1,1,'TESTE');
    INSERT INTO cademp (codemp, codfil, nomemp) values (1,2,'TESTE1');

    Select * from cademp;



In this case, the table cademp doesn´t exist at the first insert, in the
same transaction.




Tks,

Franklin


pgsql-performance by date:

Previous
From: Daniel Xavier de Sousa
Date:
Subject: Buffers to Nest Loop Join
Next
From: Tom Lane
Date:
Subject: Re: Temporary table