diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-03-05 13:16:27 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-03-05 13:16:27 -0500 |
commit | 3200b15b20d9248be1b0f436ee787b2077d00298 (patch) | |
tree | c19ef38b75e8b9fe4022b49cfd4d097a3922a0a3 /src/include/nodes/primnodes.h | |
parent | 934d12268585823c271c1490fc9aa4467c301e9c (diff) | |
download | postgresql-3200b15b20d9248be1b0f436ee787b2077d00298.tar.gz |
Remove comment claiming that PARAM_EXTERN Params always have typmod -1.
This hasn't been true in quite some time, cf plpgsql's make_datum_param().
Diffstat (limited to 'src/include/nodes/primnodes.h')
-rw-r--r-- | src/include/nodes/primnodes.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/include/nodes/primnodes.h b/src/include/nodes/primnodes.h index dbc5a35cc8..4f1d234d30 100644 --- a/src/include/nodes/primnodes.h +++ b/src/include/nodes/primnodes.h @@ -179,9 +179,10 @@ typedef struct Const int location; /* token location, or -1 if unknown */ } Const; -/* ---------------- +/* * Param - * paramkind - specifies the kind of parameter. The possible values + * + * paramkind specifies the kind of parameter. The possible values * for this field are: * * PARAM_EXTERN: The parameter value is supplied from outside the plan. @@ -204,12 +205,6 @@ typedef struct Const * of the `paramid' field contain the SubLink's subLinkId, and * the low-order 16 bits contain the column number. (This type * of Param is also converted to PARAM_EXEC during planning.) - * - * Note: currently, paramtypmod is always -1 for PARAM_EXTERN params, since - * the APIs that supply values for such parameters don't carry any typmod - * info. It is valid in other types of Params, if they represent expressions - * with determinable typmod. - * ---------------- */ typedef enum ParamKind { |