Archiving and recovering pg_stat_tmp

From: Sameer Thakur <samthakur74(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Archiving and recovering pg_stat_tmp
Date: 2013-06-20 06:17:19
Message-ID: CABzZFEs1zgH0RDy6SpJUKrxFq6NWQjdMPwmR7eAx5nW9xzB=_A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message James Sewell 2013-06-20 06:45:38 Snapshot backups
Previous Message James Sewell 2013-06-20 05:24:46 LDAP authentication timing out