Re: temporary table - Mailing list pgsql-general

From Amol Chiplunkar
Subject Re: temporary table
Date
Msg-id 4BB50E41.7000000@oracle.com
Whole thread Raw
In response to temporary table  (Szymon Guz <mabewlun@gmail.com>)
List pgsql-general
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


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Wikipedia entry - AmigaOS port - error?
Next
From: Glyn Astill
Date:
Subject: Re: Wikipedia entry - AmigaOS port - error?