Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL
Дата
Msg-id 17505.1183326406@sss.pgh.pa.us
обсуждение исходный текст
Ответ на what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Ответы Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL
Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL
Список pgsql-hackers
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> if I understand well, there isn't any difference between local and
> global temp tables in postgresql.

See the archives; some time ago we determined that the correct reading
of the spec is that global/local determines visibility of temp tables
across modules, but still within a single session.  Since we don't have
modules there is no difference for us.

> I have question. Is correct implementation of global temp in Oracle or
> Firebird, where content of glob.temp table is session visible and
> metadata of g.t.t is persistent?

It's correct per spec.  Whether it's more useful than what we do is
highly debatable --- it forces all sessions to use the same definition
of any given temp table name, which is a bit silly for something that's
supposed to support session-local data.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Restartable signals 'n all that
Следующее
От: Naz Gassiep
Дата:
Сообщение: Re: todo: Hash index creation