]> granicus.if.org Git - postgresql/commitdiff
Document (compositeval).* field selection syntax
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 14 Oct 2010 17:07:13 +0000 (20:07 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 14 Oct 2010 20:16:46 +0000 (23:16 +0300)
doc/src/sgml/syntax.sgml

index 008706e26aa9bece191017498b9439a64aed012f..e8e0da96b9577f5600852fe4e339c5fcbd3fdcd1 100644 (file)
@@ -1448,6 +1448,15 @@ $1.somecolumn
     or that <structname>mytable</> is a table name not a schema name
     in the second case.
    </para>
+
+   <para>
+    In a select list (see <xref linkend="queries-select-lists">), you
+    can ask for all fields of a composite value by
+    writing <literal>.*</literal>:
+<programlisting>
+(compositecol).*
+</programlisting>
+   </para>
   </sect2>
 
   <sect2>