Re: removal of dangling temp tables

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: removal of dangling temp tables
Дата
Msg-id 20181215034203.GF5012@paquier.xyz
обсуждение исходный текст
Ответ на Re: removal of dangling temp tables  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: removal of dangling temp tables  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On Fri, Dec 14, 2018 at 11:06:32PM -0300, Alvaro Herrera wrote:
> I did propose in my OP the idea of a PGPROC boolean flag that indicates
> whether the temp namespace has been set up.  If not, have autovac remove
> those tables.  I like this option better, but I fear it adds more
> ProcArrayLock contention.  Maybe I can just use a new LWLock to
> coordinate that particular member of the ProcGlobal array ... (but then
> it can no longer be a boolean.)

Isn't that what tempNamespaceId can be used for in PGPROC now?  The flag
would be set only when a backend creates a new temporary schema so as it
can be tracked as the owner of the schema.
--
Michael

Вложения

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query
Следующее
От: Amit Kapila
Дата:
Сообщение: unnecessary creation of FSM files during bootstrap mode