Clean up some bogosities in description of target lists.
authorTom Lane
Sat, 16 Dec 2000 18:22:53 +0000 (18:22 +0000)
committerTom Lane
Sat, 16 Dec 2000 18:22:53 +0000 (18:22 +0000)
doc/src/sgml/syntax.sgml

index 0537f531ef417c123cb1d4e6c3fd4fcdd6f9f459..15bfda8d2c87a2e35021b7855b06b732a790c58d 100644 (file)
@@ -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.