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

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL
Дата
Msg-id 162867790707022208w267d43aard8ee2dabc219bb38@mail.gmail.com
обсуждение исходный текст
Ответ на Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL  (Gregory Stark <stark@enterprisedb.com>)
Ответы Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL
Список pgsql-hackers
2007/7/3, Gregory Stark <stark@enterprisedb.com>:
>
> "Jaime Casanova" <systemguards@gmail.com> writes:
>
> > while not just a new rekind indicating this is a template and not and
> > actual table. and using that template for creating the actual tables?
>
> For precisely the reason stated upthread. That would mean creating and
> deleting catalog entries for every transaction. Imagine a busy OLTP system
> running hundreds of transactions per second trying to use a temporary table
> for intermediate results. Mixing DDL and DML is just as bad an idea behind the
> scenes as it is for users.
>

Global temp table can be created from template only when is used. It's
has not negative efect on app which doesn't use it. The benefit of
g.t.t. is simplifycation of stored procedures.

regards
Pavel Stehule


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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Still recommending daily vacuum...
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL