Re: PITR and Temp Tables

From: Huan Ruan <leohuanruan(at)gmail(dot)com>
To: Patrick FICHE <Patrick(dot)Fiche(at)aqsacom(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: PITR and Temp Tables
Date: 2022-04-20 13:02:34
Message-ID: CAGgcTZuk8jDk_42NxyE+q6W_KPqb_UyrhPZ+-ihYjYU6qP7AnA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Patrick

Thanks for your reply.

>
>
> 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.
>
What I observed in one instance seems* to be like this - by the time I
connected to the recovered database (as soon as I could), an autovacuuum
has run on those catalog tables and they don't have those temp table
entries. Normally, autovacuum removes dead tuples, but those temp table
records are live tuples at T0. So if it was autovacuum that removed them in
the recovered database, were they live or dead tuples? If they are dead,
what did the deletion that made them dead?

*I would like to confirm to be 100% sure but was wondering if I can get an
explanation here.

Regards
Huan

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2022-04-20 13:36:14 Re: PITR and Temp Tables
Previous Message Patrick FICHE 2022-04-20 12:45:36 RE: PITR and Temp Tables