diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index 0537f531ef..15bfda8d2c 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -1,5 +1,5 @@ @@ -791,7 +791,7 @@ sqrt(emp.salary) 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: @@ -799,16 +799,13 @@ sqrt(emp.salary) 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.