Re: Temporary tables prevent autovacuum, leading to XID wraparound

Поиск
Список
Период
Сортировка
Искать
От
Michael Paquier
Тема
Re: Temporary tables prevent autovacuum, leading to XID wraparound
Дата
Msg-id
20180125081712.GA17847@paquier.xyz
Ответ на
Список
Дерево обсуждения
Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael.paquier@gmail.com>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael.paquier@gmail.com>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Robert Haas <robertmhaas@gmail.com>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Robert Haas <robertmhaas@gmail.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael.paquier@gmail.com>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael.paquier@gmail.com>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Robert Haas <robertmhaas@gmail.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Tom Lane <tgl@sss.pgh.pa.us>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael@paquier.xyz>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael@paquier.xyz>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael@paquier.xyz>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael@paquier.xyz>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Tom Lane <tgl@sss.pgh.pa.us>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael@paquier.xyz>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Andres Freund <andres@anarazel.de>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael@paquier.xyz>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Andres Freund <andres@anarazel.de>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael@paquier.xyz>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Andres Freund <andres@anarazel.de>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael@paquier.xyz>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael@paquier.xyz>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Andres Freund <andres@anarazel.de>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael@paquier.xyz>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael@paquier.xyz>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael@paquier.xyz>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael@paquier.xyz>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Michael Paquier <michael@paquier.xyz>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Robert Haas <robertmhaas@gmail.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Tom Lane <tgl@sss.pgh.pa.us>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Robert Haas <robertmhaas@gmail.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Masahiko Sawada <sawada.mshk@gmail.com>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Masahiko Sawada <sawada.mshk@gmail.com>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Robert Haas <robertmhaas@gmail.com>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Robert Haas <robertmhaas@gmail.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Masahiko Sawada <sawada.mshk@gmail.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Robert Haas <robertmhaas@gmail.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Masahiko Sawada <sawada.mshk@gmail.com>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Robert Haas <robertmhaas@gmail.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Masahiko Sawada <sawada.mshk@gmail.com>
Re: Temporary tables prevent autovacuum, leading to XID wraparound Masahiko Sawada <sawada.mshk@gmail.com>
RE: Temporary tables prevent autovacuum, leading to XID wraparound "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
On Thu, Jan 25, 2018 at 08:10:00AM +0000, Tsunakawa, Takayuki wrote:
>>> * In this incident, autovacuum worker misjudged that
>>> pg_temp_3.fetchchunks can't be deleted, although the creator
>>> (pg_rewind) is no longer active.  How can we delete orphan temporary
>>> tables safely?
>> 
>> As long as Postgres sees that its temporary schema is in use, it would think
>> that the table is not orphaned. Another thing possible would be to have
>> the session now holding this schema space to reuse fetchchunks so as things
>> are reset.
> 
> I understood you suggested a new session which recycle the temp schema
> should erase the zombie metadata of old temp tables or recreate the
> temp schema.  That sounds easy. 

If the new session makes use of the same temporary schema where the
orphan table is, cleanup is possible. Now you have a problem if this is
not available as this depends on the backend ID uniquely assigned. It
would be better to just drop the table manually at the end.
--
Michael
В списке pgsql-hackers по дате отправления
От: Tsunakawa, Takayuki
Дата:
От: Tsunakawa, Takayuki
Дата:
FAQ