A target list
- is a parenthesized, comma-separated list of one or more elements, each
+ is a comma-separated list of one or more elements, each
of which must be of the form:
where result_attname
- is the name of the attribute to be created (or an
- already existing attribute name in the case of update statements.) If
+ is the name to be assigned to the created column. If
result_attname
- is not present, then
- a_expr
- must contain only one attribute name which is assumed to be the name
- of the result field. In
Postgres
- default naming is only used if
- a_expr
- is an attribute.
+ is not present, then
Postgres selects a
+ default name based on the contents of a_expr.
+ If a_expr is a simple attribute reference
+ then the default name will be the same as that attribute's name, but
+ otherwise the implementation is free to assign any default name.