Re: Detecting Temporary Tables

Поиск
Список
Период
Сортировка
От Jamie Deppeler
Тема Re: Detecting Temporary Tables
Дата
Msg-id 41B63166.60809@doitonce.net.au
обсуждение исходный текст
Ответ на Re: Detecting Temporary Tables  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
What i want to be able to do is create a tempory table and when i need a
value stored in the table  i want to check that the table has been
created if it has not do a create temp table .... or just do an update.

Michael Fuhr wrote:
> On Tue, Dec 07, 2004 at 09:22:51AM +1100, Jamie Deppeler wrote:
>
>
>>Is it possible to detect the instance of a Temporary through a function?
>
>
> What are you trying to do?
>
> Temporary tables are stored in the pg_temp_NNN schema (e.g.,
> pg_temp_1).  See the "System Catalogs" chapter in the PostgreSQL
> documentation for information on finding a table's schema.  If
> you're using 7.4 or later then see also the "Information Schema"
> chapter -- one of its views has two fields that should be helpful.
>


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

Предыдущее
От: Steven Klassen
Дата:
Сообщение: Re: postgresql and javascript
Следующее
От: Stan Y
Дата:
Сообщение: Measure the CPU Time per Transaction