|
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $PostgreSQL: pgsql/src/backend/utils/cache/lsyscache.c,v 1.127 2005/08/12 21:49:47 tgl Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/backend/utils/cache/lsyscache.c,v 1.128 2005/10/11 17:27:14 tgl Exp $ |
11 | 11 | *
|
12 | 12 | * NOTES
|
13 | 13 | * Eventually, the index information should go through here, too.
|
@@ -1841,8 +1841,8 @@ get_attavgwidth(Oid relid, AttrNumber attnum)
|
1841 | 1841 | * entry, and we don't want to repeat the cache lookup unnecessarily.
|
1842 | 1842 | *
|
1843 | 1843 | * statstuple: pg_statistics tuple to be examined.
|
1844 |
| - * atttype: type OID of attribute. |
1845 |
| - * atttypmod: typmod of attribute. |
| 1844 | + * atttype: type OID of attribute (can be InvalidOid if values == NULL). |
| 1845 | + * atttypmod: typmod of attribute (can be 0 if values == NULL). |
1846 | 1846 | * reqkind: STAKIND code for desired statistics slot kind.
|
1847 | 1847 | * reqop: STAOP value wanted, or InvalidOid if don't care.
|
1848 | 1848 | * values, nvalues: if not NULL, the slot's stavalues are extracted.
|
@@ -1960,6 +1960,12 @@ get_attstatsslot(HeapTuple statstuple,
|
1960 | 1960 | return true;
|
1961 | 1961 | }
|
1962 | 1962 |
|
| 1963 | +/* |
| 1964 | + * free_attstatsslot |
| 1965 | + * Free data allocated by get_attstatsslot |
| 1966 | + * |
| 1967 | + * atttype need be valid only if values != NULL. |
| 1968 | + */ |
1963 | 1969 | void
|
1964 | 1970 | free_attstatsslot(Oid atttype,
|
1965 | 1971 | Datum *values, int nvalues,
|
|
0 commit comments