Re: No result when selecting attstattarget from pg_attribute

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "William Sescu (Suva)" <william(dot)sescu(at)suva(dot)ch>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: No result when selecting attstattarget from pg_attribute
Date: 2019-11-28 14:54:14
Message-ID: 31263.1574952854@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"William Sescu (Suva)" <william(dot)sescu(at)suva(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message William Sescu (Suva) 2019-11-28 15:14:13 AW: No result when selecting attstattarget from pg_attribute
Previous Message Laurenz Albe 2019-11-28 14:23:15 Re: No result when selecting attstattarget from pg_attribute