Re: temp table existence

Поиск
Список
Период
Сортировка
От aklaver@comcast.net (Adrian Klaver)
Тема Re: temp table existence
Дата
Msg-id 122920072225.1629.4776C95300035CAA0000065D22007456729D0A900E04050E@comcast.net
обсуждение исходный текст
Ответ на temp table existence  ("Marcin Krawczyk" <jankes.mk@gmail.com>)
Список pgsql-sql
------------- Original message ----------------------
From: "Marcin Krawczyk" <jankes.mk@gmail.com>
> 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?

select  *  from temp_table limit 1;
Trap error 42P01 Undefined table.

--
Adrian Klaver
aklaver@comcast.net

 -


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: temp table existence
Следующее
От: Erik Jones
Дата:
Сообщение: Re: temp table existence