pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Virendra Kumar <viru_7683@yahoo.com>
To: Pgsql-general General <pgsql-general@postgresql.org>
Subject: Copy Statistics Tables During Upgrade
Date: Wed, 31 Mar 2021 18:15:23 +0000 (UTC)
Message-ID: <1042003030.2667942.1617214523822@mail.yahoo.com> (raw)
References: <1042003030.2667942.1617214523822.ref@mail.yahoo.com>

Hello Team,
I was doing an upgrade of one of our PG (9.6.11 to 11.9) database and came across the question that what is reason PostgreSQL is not doing copy of stats and we have to analyze right after upgrade. There are two situations where this will help when we use this DB as our enterprise database:
1. If DB is in magnitude of hundreds of TB and we have to do analyze it might take several hours before we handover this to application services.
2. We are loosing critical information like most common values and most common freqs because these values are populated over time when many-many sessions hit table and queries with different values of a column.
Any input on this is higly appreciated.


Regards,
Virendra Kumar

view thread (2+ messages)  latest in thread

Message-ID: <1042003030.2667942.1617214523822@mail.yahoo.com>
Permalink:  ../1042003030.2667942.1617214523822@mail.yahoo.com/
Also on:    postgresql.org/message-id/1042003030.2667942.1617214523822@mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: viru_7683@yahoo.com
  Subject: Re: Copy Statistics Tables During Upgrade
  In-Reply-To: <1042003030.2667942.1617214523822@mail.yahoo.com>
  References: <1042003030.2667942.1617214523822.ref@mail.yahoo.com> <1042003030.2667942.1617214523822@mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox