No stats after promoting standby? - Mailing list pgsql-admin

From Don Seiler
Subject No stats after promoting standby?
Date
Msg-id CAHJZqBB=NPK5MmGk2xuP96yrvCY3U024n=BGkdrKsQe5BHvM9g@mail.gmail.com
Whole thread Raw
Responses Re: No stats after promoting standby?  (Adrien Nayrat <adrien.nayrat@dalibo.com>)
List pgsql-admin
I created a test standby that was recovering from our prod primary via restored WAL files. When I broke recovery and opened up that test standby, I saw that records in pg_stat_all_tables for tables that contain many millions of rows (and have for years) were saying a few hundred rows, with last_analyze and last_autoanalyze being null. I know this isn't the case for pg_stat_all_tables on prod. Do stats not automatically get preserved when a standby is promoted? Did something go wrong here or should I know/expect to have to manually gather DB stats after a failover (like we do with major upgrades)? This is PG 9.2.22 on CentOS. Don. -- Don Seiler www.seiler.us

pgsql-admin by date:

Previous
From: Jerry Sievers
Date:
Subject: Re: Upgrading from 9.2 -> 9.6: ERROR with 'could not execute query: ERROR: permission denied for type my_type_name'
Next
From: Don Seiler
Date:
Subject: Re: No stats after promoting standby?