Re: "out of shared memory error" with temp tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "out of shared memory error" with temp tables
Дата
Msg-id 19607.1139813782@sss.pgh.pa.us
обсуждение исходный текст
Ответ на "out of shared memory error" with temp tables  (A Gattiker <agattik@gmail.com>)
Список pgsql-general
A Gattiker <agattik@gmail.com> writes:
> I have procedures that create temporary tables every time. When those
> procedures are called many times in a single transaction I get an "out
> of shared memory error". This happens even if the temporary tables are
> correctly dropped as shown in the example below. Does postgres retain
> a lock to a dropped object? How may I prevent this?

Yes, and you can't, because the object is not actually dropped until end
of transaction.  I'd suggest rethinking your temp table use: that design
is going to bloat the system catalogs enormously, even if you weren't
running out of lock space.

            regards, tom lane

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Why does an ON SELECT rule have to be named "_RETURN"?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Compile of Pgmail function fails