Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iaLjH-0003nJ-Bk for pgsql-admin@arkaria.postgresql.org; Thu, 28 Nov 2019 15:29:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iaLjG-0006OZ-0E for pgsql-admin@arkaria.postgresql.org; Thu, 28 Nov 2019 15:29:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iaLjF-0006OS-Mm for pgsql-admin@lists.postgresql.org; Thu, 28 Nov 2019 15:29:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iaLjD-0001Jr-GV for pgsql-admin@postgresql.org; Thu, 28 Nov 2019 15:29:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xASFT903000329; Thu, 28 Nov 2019 10:29:09 -0500 From: Tom Lane To: "William Sescu (Suva)" cc: "pgsql-admin@postgresql.org" Subject: Re: AW: No result when selecting attstattarget from pg_attribute In-reply-to: <9545ee300c12457f8ef09c8708d45f31@suva.ch> References: <4078c426dbbb4e18a047ec00485adba9@suva.ch> <31263.1574952854@sss.pgh.pa.us> <9545ee300c12457f8ef09c8708d45f31@suva.ch> Comments: In-reply-to "William Sescu (Suva)" message dated "Thu, 28 Nov 2019 15:14:13 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <327.1574954949.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 28 Nov 2019 10:29:09 -0500 Message-ID: <328.1574954949@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "William Sescu (Suva)" writes: > Thank you Tom for clarification. However, in regards of pg_upgrade, whic= h 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