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: No result when selecting attstattarget from pg_attribute
Date: Thu, 28 Nov 2019 09:54:14 -0500
Message-ID: <31263.1574952854@sss.pgh.pa.us> (raw)
In-Reply-To: <4078c426dbbb4e18a047ec00485adba9@suva.ch>
References: <4078c426dbbb4e18a047ec00485adba9@suva.ch>
"William Sescu (Suva)" <william.sescu@suva.ch> writes:
> I was following the create statistics example from the doc
> https://www.postgresql.org/docs/11/sql-createstatistics.html
> and wondered why I don't see any results when selecting attstattarget from pg_attribute.
attstattarget has nothing to do with extended statistics.
It's for recording "ALTER TABLE ... SET STATISTICS n"
commands, which just control the granularity of the
regular (pg_statistic) statistics.
Look into pg_statistic_ext to see the effects of CREATE
STATISTICS.
regards, tom lane
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: No result when selecting attstattarget from pg_attribute
In-Reply-To: <31263.1574952854@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