mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Add proofreader's changes to docs.
Fix misspelling of disbursion to dispersion.
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.79 2000/09/15 18:45:26 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.80 2000/10/05 19:48:28 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -230,11 +230,11 @@ eqsel(PG_FUNCTION_ARGS)
|
||||
|
||||
/*
|
||||
* No VACUUM ANALYZE stats available, so make a guess using
|
||||
* the disbursion stat (if we have that, which is unlikely for
|
||||
* the dispersion stat (if we have that, which is unlikely for
|
||||
* a normal attribute; but for a system attribute we may be
|
||||
* able to estimate it).
|
||||
*/
|
||||
selec = get_attdisbursion(relid, attno, 0.01);
|
||||
selec = get_attdispersion(relid, attno, 0.01);
|
||||
}
|
||||
|
||||
result = (float8) selec;
|
||||
@ -655,8 +655,8 @@ eqjoinsel(PG_FUNCTION_ARGS)
|
||||
result = DEFAULT_EQ_SEL;
|
||||
else
|
||||
{
|
||||
num1 = unknown1 ? 1.0 : get_attdisbursion(relid1, attno1, 0.01);
|
||||
num2 = unknown2 ? 1.0 : get_attdisbursion(relid2, attno2, 0.01);
|
||||
num1 = unknown1 ? 1.0 : get_attdispersion(relid1, attno1, 0.01);
|
||||
num2 = unknown2 ? 1.0 : get_attdispersion(relid2, attno2, 0.01);
|
||||
|
||||
/*
|
||||
* The join selectivity cannot be more than num2, since each tuple
|
||||
@ -666,7 +666,7 @@ eqjoinsel(PG_FUNCTION_ARGS)
|
||||
* reasoning it is not more than num1. The min is therefore an
|
||||
* upper bound.
|
||||
*
|
||||
* If we know the disbursion of only one side, use it; the reasoning
|
||||
* If we know the dispersion of only one side, use it; the reasoning
|
||||
* above still works.
|
||||
*
|
||||
* XXX can we make a better estimate here? Using the nullfrac
|
||||
|
Reference in New Issue
Block a user