pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: William Sescu (Suva) <william.sescu@suva.ch>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: AW: No result when selecting attstattarget from pg_attribute
Date: Thu, 28 Nov 2019 10:29:09 -0500
Message-ID: <328.1574954949@sss.pgh.pa.us> (raw)
In-Reply-To: <9545ee300c12457f8ef09c8708d45f31@suva.ch>
References: <4078c426dbbb4e18a047ec00485adba9@suva.ch>
	<31263.1574952854@sss.pgh.pa.us>
	<9545ee300c12457f8ef09c8708d45f31@suva.ch>

"William Sescu (Suva)" <william.sescu@suva.ch> writes:
> Thank you Tom for clarification. However, in regards of pg_upgrade, which does not transfer statistics, how do I know
> how to create the "CREATE STATISTICS" on the new PostgreSQL version?

You are apparently confusing the *definition* of a statistics object
with the *content*.  pg_upgrade will certainly transfer the former.
Run ANALYZE to re-fill the latter.

			regards, tom lane





view thread (3+ messages)

Message-ID: <328.1574954949@sss.pgh.pa.us>
Permalink:  ../328.1574954949@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/328.1574954949@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, william.sescu@suva.ch
  Subject: Re: AW: No result when selecting attstattarget from pg_attribute
  In-Reply-To: <328.1574954949@sss.pgh.pa.us>

* 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