Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
51.55. pg_statistic_ext_data
Prev UpChapter 51. System CatalogsHome Next

51.55. pg_statistic_ext_data#

The catalogpg_statistic_ext_data holds data for extended planner statistics defined inpg_statistic_ext. Each row in this catalog corresponds to astatistics object created withCREATE STATISTICS.

Normally there is one entry, withstxdinherit =false, for each statistics object that has been analyzed. If the table has inheritance children or partitions, a second entry withstxdinherit =true is also created. This row represents the statistics object over the inheritance tree, i.e., statistics for the data you'd see withSELECT * FROMtable*, whereas thestxdinherit =false row represents the results ofSELECT * FROM ONLYtable.

Likepg_statistic,pg_statistic_ext_data should not be readable by the public, since the contents might be considered sensitive. (Example: most common combinations of values in columns might be quite interesting.)pg_stats_ext is a publicly readable view onpg_statistic_ext_data (after joining withpg_statistic_ext) that only exposes information about tables the current user owns.

Table 51.55. pg_statistic_ext_data Columns

Column Type

Description

stxoidoid (referencespg_statistic_ext.oid)

Extended statistics object containing the definition for this data

stxdinheritbool

If true, the stats include values from child tables, not just the values in the specified relation

stxdndistinctpg_ndistinct

N-distinct counts, serialized aspg_ndistinct type

stxddependenciespg_dependencies

Functional dependency statistics, serialized aspg_dependencies type

stxdmcvpg_mcv_list

MCV (most-common values) list statistics, serialized aspg_mcv_list type

stxdexprpg_statistic[]

Per-expression statistics, serialized as an array ofpg_statistic type



Prev Up Next
51.54. pg_statistic_ext Home 51.56. pg_subscription
pdfepub
Go to Postgres Pro Standard 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp