| From: | Amol Chiplunkar <amol(dot)chiplunkar(at)oracle(dot)com> |
|---|---|
| To: | Szymon Guz <mabewlun(at)gmail(dot)com> |
| Cc: | Postgres General <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: temporary table |
| Date: | 2010-04-01 21:21:05 |
| Message-ID: | 4BB50E41.7000000@oracle.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Glyn Astill | 2010-04-01 21:28:13 | Re: Wikipedia entry - AmigaOS port - error? |
| Previous Message | Josh Kupershmidt | 2010-04-01 21:07:50 | Re: [Solved] 8.3 Stats Collector Stuck at 100% CPU |