diff options
Diffstat (limited to 'src/backend/utils/cache/lsyscache.c')
-rw-r--r-- | src/backend/utils/cache/lsyscache.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/backend/utils/cache/lsyscache.c b/src/backend/utils/cache/lsyscache.c index 13ae6add036..84464eeaa91 100644 --- a/src/backend/utils/cache/lsyscache.c +++ b/src/backend/utils/cache/lsyscache.c @@ -2832,9 +2832,9 @@ get_attavgwidth(Oid relid, AttrNumber attnum) * that have been provided by a stats hook and didn't really come from * pg_statistic. * - * statstuple: pg_statistics tuple to be examined. - * atttype: type OID of attribute (can be InvalidOid if values == NULL). - * atttypmod: typmod of attribute (can be 0 if values == NULL). + * statstuple: pg_statistic tuple to be examined. + * atttype: type OID of slot's stavalues (can be InvalidOid if values == NULL). + * atttypmod: typmod of slot's stavalues (can be 0 if values == NULL). * reqkind: STAKIND code for desired statistics slot kind. * reqop: STAOP value wanted, or InvalidOid if don't care. * actualop: if not NULL, *actualop receives the actual STAOP value. @@ -2842,7 +2842,7 @@ get_attavgwidth(Oid relid, AttrNumber attnum) * numbers, nnumbers: if not NULL, the slot's stanumbers are extracted. * * If assigned, values and numbers are set to point to palloc'd arrays. - * If the attribute type is pass-by-reference, the values referenced by + * If the stavalues datatype is pass-by-reference, the values referenced by * the values array are themselves palloc'd. The palloc'd stuff can be * freed by calling free_attstatsslot. * @@ -2972,7 +2972,8 @@ get_attstatsslot(HeapTuple statstuple, * free_attstatsslot * Free data allocated by get_attstatsslot * - * atttype need be valid only if values != NULL. + * atttype is the type of the individual values in values[]. + * It need be valid only if values != NULL. */ void free_attstatsslot(Oid atttype, |