RE: PITR and Temp Tables

Поиск
Список
Период
Сортировка
От Patrick FICHE
Тема RE: PITR and Temp Tables
Дата
Msg-id VI1PR05MB59179D2AB4D2B8ED43F937D7EFF59@VI1PR05MB5917.eurprd05.prod.outlook.com
обсуждение исходный текст
Ответ на PITR and Temp Tables  (Huan Ruan <leohuanruan@gmail.com>)
Ответы Re: PITR and Temp Tables  (Huan Ruan <leohuanruan@gmail.com>)
Список pgsql-general

From: Huan Ruan <leohuanruan@gmail.com>
Sent: Wednesday, April 20, 2022 2:18 PM
To: pgsql-general@lists.postgresql.org
Subject: PITR and Temp Tables

 

Hi All

 

Let's say at T0 a database has N session based temp tables. They would have corresponding records in the catalog tables like pg_class and pg_attribute that are visible to other sessions.

 

At T1, I do a PITR to T0. That recovered database should not have those temp tables because the sessions they were created in are not present. My question is what events trigger the deletion of those temp tables' catalog records (e.g. pg_class and pg_attribute etc.) in the recovered database?

 

Thanks

Huan

 

Hi,

 

My guess is that temp table entries will still be in your catalog until you do a VACUUM FULL of the pg_class / pg_attribute tables.

But you should not care about these entries if these tables are vacuumed at regular intervals.

 

Regards,

Patrick

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

Предыдущее
От: Huan Ruan
Дата:
Сообщение: PITR and Temp Tables
Следующее
От: Huan Ruan
Дата:
Сообщение: Re: PITR and Temp Tables