1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
10 HREF="mailto:pgsql-docs@postgresql.org"><LINK
12 TITLE="PostgreSQL 7.4.1 Documentation"
13 HREF="index.html"><LINK
15 TITLE="System Catalogs"
16 HREF="catalogs.html"><LINK
19 HREF="catalog-pg-shadow.html"><LINK
22 HREF="catalog-pg-trigger.html"><LINK
25 HREF="stylesheet.css"><META
27 CONTENT="2003-12-22T03:48:47"></HEAD
33 SUMMARY="Header navigation table"
43 >PostgreSQL 7.4.1 Documentation</TH
51 HREF="catalog-pg-shadow.html"
67 >Chapter 43. System Catalogs</TD
81 HREF="catalog-pg-trigger.html"
95 NAME="CATALOG-PG-STATISTIC"
108 > stores statistical data about
109 the contents of the database. Entries are created by
113 > and subsequently used by the query planner.
114 There is one entry for each table column that has been analyzed.
115 Note that all the statistical data is inherently approximate,
116 even assuming that it is up-to-date.
119 > Since different kinds of statistics may be appropriate for different
124 to assume very much about what sort of statistics it stores. Only
125 extremely general statistics (such as nullness) are given dedicated
133 >, which are groups of associated columns whose
134 content is identified by a code number in one of the slot's columns.
135 For more information see
138 >src/include/catalog/pg_statistic.h</TT
145 > should not be readable by the
146 public, since even statistical information about a table's contents
147 may be considered sensitive. (Example: minimum and maximum values
148 of a salary column might be quite interesting.)
150 HREF="view-pg-stats.html"
156 is a publicly readable view on
160 > that only exposes information
161 about those tables that are readable by the current user.
178 ><COL><COL><COL><COL><THEAD
206 HREF="catalog-pg-class.html"
214 >The table that the described column belongs to</TD
231 HREF="catalog-pg-attribute.html"
239 >The number of the described column</TD
255 >The fraction of the column's entries that are null</TD
271 >The average stored width, in bytes, of nonnull entries</TD
287 >The number of distinct nonnull data values in the column.
288 A value greater than zero is the actual number of distinct values.
289 A value less than zero is the negative of a fraction of the number
290 of rows in the table (for example, a column in which values appear about
291 twice on the average could be represented by <TT
295 A zero value means the number of distinct values is unknown.
315 > A code number indicating the kind of statistics stored in the
347 HREF="catalog-pg-operator.html"
355 > An operator used to derive the statistics stored in the
363 histogram slot would show the <TT
367 that defines the sort order of the data.
387 > Numerical statistics of the appropriate kind for the
394 >, or null if the slot
395 kind does not involve numerical values.
415 > Column data values of the appropriate kind for the
422 >, or null if the slot
423 kind does not store any data values. Each array's element
424 values are actually of the specific column's data type, so there
425 is no way to define these columns' type more specifically than
441 SUMMARY="Footer navigation table"
452 HREF="catalog-pg-shadow.html"
470 HREF="catalog-pg-trigger.html"