Re: Temp table exists test??

Поиск
Список
Период
Сортировка
От Michael Guerin
Тема Re: Temp table exists test??
Дата
Msg-id 4202F733.8040600@rentec.com
обсуждение исходный текст
Ответ на Re: Temp table exists test??  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-novice
>If you don't care whether the table is temporary or not then you
>could simply test if it's visible:
>
>SELECT *
>FROM pg_class
>WHERE relname = 'foo'
>  AND relkind = 'r'
>  AND pg_table_is_visible(oid);
>
>
>
Ignore my last post that pg_table_is_visible didn't work, I created the
table but forgot the keyword temp :(  .. Guess its time for me to goto bed.

This is exactly what I'm looking for.

Thanks
Michael


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

Предыдущее
От: Michael Guerin
Дата:
Сообщение: Re: Temp table exists test??
Следующее
От: Bruce Rowe
Дата:
Сообщение: Installation tool