temp table existence

From: "Marcin Krawczyk" <jankes(dot)mk(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: temp table existence
Date: 2007-12-29 19:16:33
Message-ID: 95f6bf9b0712291116lc3c1df0o978922176e98f8d7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi all. Is there a way to determine the existence of a TEMP
TABLE? I need to check i it exists before I create it. Doing simple
check on pg_class or pg_tables is
not enough because there may be other such tables created in other sessions.
Or maybe anyone knows the identification (apart from 'others') of error to
trap it with EXCEPTION clause?

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Pavel Stehule 2007-12-29 19:33:58 Re: temp table existence
Previous Message Shane Ambler 2007-12-29 17:22:05 Re: sql query question ?