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

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL
Дата
Msg-id 19689F96-2FE1-4343-BE86-94317AEB0C57@decibel.org
обсуждение исходный текст
Ответ на Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL
Список pgsql-hackers
On Jul 1, 2007, at 4:46 PM, Tom Lane wrote:
>> 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.

Would it be possible to support both global and local?

I've often thought that having global temp tables would be a really  
good idea, since it would drastically reduce the need to vacuum  
catalog tables, but I've never looked into what would be required to  
do so.
--
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)




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

Предыдущее
От: "Simon Riggs"
Дата:
Сообщение: Re: Configurable Additional Stats
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: Postgresql.conf cleanup