Re: [GENERAL] Why lots of temp schemas are being created

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] Why lots of temp schemas are being created
Дата
Msg-id 4928.1265250950@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Why lots of temp schemas are being created  (Walter Coole <WCoole@aperiogroup.com>)
Список pgsql-novice
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Temp schemas are not destroyed on session shutdown; they are rather
> destroyed the next time the backend ID is reused.  Normally that's not a
> problem, because a backend ID is reused pretty soon.  It's only a
> problem when you use so high a backend ID due to high load, that a very
> long time passes before it's reused.  Those temp tables linger and can
> cause Xid wraparound problems.

Not correct --- ordinarily temp tables are removed at backend shutdown.
The only time that wouldn't happen is in event of a backend crash.  In
which case cleanup would happen at next use, as you describe.

The schemas are indeed left around, but they're empty in the normal case.

            regards, tom lane

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

Предыдущее
От: Walter Coole
Дата:
Сообщение: Re: [GENERAL] Why lots of temp schemas are being created
Следующее
От: "Machiel Richards"
Дата:
Сообщение: Postgres Trainign in RSA