Skip to content

Commit e905482

Browse files
committed
Update comments about attdisbursion. NO code change.
1 parent 1ecb43a commit e905482

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/include/catalog/pg_attribute.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: pg_attribute.h,v 1.48 1999/07/31 19:07:25 tgl Exp $
10+
* $Id: pg_attribute.h,v 1.49 1999/08/09 02:45:56 tgl Exp $
1111
*
1212
* NOTES
1313
* the genbki.sh script reads this file and generates .bki
@@ -53,8 +53,15 @@ CATALOG(pg_attribute) BOOTSTRAP
5353

5454
float4 attdisbursion;
5555
/*
56-
* attdisbursion is the disbursion statistic of the column, or zero if
57-
* the statistic has not been calculated.
56+
* attdisbursion is the disbursion statistic of the column (0.0 to 1.0),
57+
* or zero if the statistic has not been calculated, or -1.0
58+
* if VACUUM found that the column contains no duplicate entries
59+
* (in which case the disbursion should be taken as 1.0/numberOfRows
60+
* for the current table size). The -1.0 hack is useful because the
61+
* number of rows may be updated more often than attdisbursion is.
62+
* We assume that the column will retain its no-duplicate-entry
63+
* property. (Perhaps this should be driven off the existence of a
64+
* UNIQUE index for the column, instead of being a statistical guess?)
5865
*/
5966

6067
int2 attlen;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy