Archiving and recovering pg_stat_tmp - Mailing list pgsql-general

From Sameer Thakur
Subject Archiving and recovering pg_stat_tmp
Date
Msg-id CABzZFEs1zgH0RDy6SpJUKrxFq6NWQjdMPwmR7eAx5nW9xzB=_A@mail.gmail.com
Whole thread Raw
Responses Re: Archiving and recovering pg_stat_tmp  (Amit Langote <amitlangote09@gmail.com>)
Re: Archiving and recovering pg_stat_tmp  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-general
Hello,
I was trying to figure out how does one recover server statistics to the same snapshot to which a database is restored after PITR.
The steps i had in mind were
1.Set up WAL archiving 
2.On server shutdown one would need to backup  pg_stat_tmp along with file system level back of database
3. On server crash setup configuration for recovery mode
4. Restart server, which replays WAL files and hen moves from recovery to normal mode
What will be behavior be regarding pg_stat_tmp? Will it be deleted on startup? Is it possible to recover the same statistics as on last server shutdown? ICan the statistics recovered to the same PITR?
Thank you
Sameer

pgsql-general by date:

Previous
From: James Sewell
Date:
Subject: LDAP authentication timing out
Next
From: James Sewell
Date:
Subject: Snapshot backups