Skip to content

Commit cf00d59

Browse files
committed
Clean up some bogosities in description of target lists.
1 parent 9cf0a82 commit cf00d59

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

doc/src/sgml/syntax.sgml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.26 2000/12/14 22:30:56 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.27 2000/12/16 18:22:53 tgl Exp $
33
-->
44

55
<chapter id="syntax">
@@ -791,24 +791,21 @@ sqrt(emp.salary)
791791

792792
<para>
793793
A <firstterm>target list</firstterm>
794-
is a parenthesized, comma-separated list of one or more elements, each
794+
is a comma-separated list of one or more elements, each
795795
of which must be of the form:
796796

797797
<synopsis>
798798
<replaceable>a_expr</replaceable> [ AS <replaceable>result_attname</replaceable> ]
799799
</synopsis>
800800

801801
where <replaceable>result_attname</replaceable>
802-
is the name of the attribute to be created (or an
803-
already existing attribute name in the case of update statements.) If
802+
is the name to be assigned to the created column. If
804803
<replaceable>result_attname</replaceable>
805-
is not present, then
806-
<replaceable>a_expr</replaceable>
807-
must contain only one attribute name which is assumed to be the name
808-
of the result field. In <productname>Postgres</productname>
809-
default naming is only used if
810-
<replaceable>a_expr</replaceable>
811-
is an attribute.
804+
is not present, then <productname>Postgres</productname> selects a
805+
default name based on the contents of <replaceable>a_expr</replaceable>.
806+
If <replaceable>a_expr</replaceable> is a simple attribute reference
807+
then the default name will be the same as that attribute's name, but
808+
otherwise the implementation is free to assign any default name.
812809
</para>
813810
</sect2>
814811

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy