Search Postgresql Archives

Re: temporary table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




A crude way would be to put it in a block and ignore the exception

BEGIN
       -- create temp table
   EXCEPTION
       WHEN DUPLICATE_TABLE THEN
           -- Table already exists,
           NULL;
   END;

thx
- Amol

Szymon Guz wrote:
I want to create a temp table in a trigger... but this must be created max once for each transaction. I'd like to check in the trigger if the table exists. How can I check if a table is a temporary table?

regards
Szymon Guz


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux