Forcing analyze on DB after upgrading?

From: Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
To: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Forcing analyze on DB after upgrading?
Date: 2019-10-30 05:11:51
Message-ID: CAOC+FBUsOAKGBdNVmr2OSiRq7nLw=5jWMRjd9C5AWT6TVLXU-A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I just upgraded from 9.6 to 12, and am noticing some queries are slow.

I did this kind of query:

SELECT relname, last_vacuum, last_autovacuum, last_analyze, last_autoanalyze
FROM pg_stat_all_tables
WHERE schemaname = 'myschema';

And noticed null values for everything, including last analyze date.

Does this mean the planner won't be able to optimize for these tables? Do I
need to do something to prep my DB for planning after upgrade?

--
Wells Oliver
wells(dot)oliver(at)gmail(dot)com <wellsoliver(at)gmail(dot)com>

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2019-10-30 05:22:13 Re: Upgrading from 9.6 to 12 and running into cast issues with pg_catalog.text()
Previous Message Keith 2019-10-30 03:52:47 Re: After upgrading to PG 12, \d in psql breaks with no more c.relhasoids