]> granicus.if.org Git - postgresql/commitdiff
Example of a function taking a composite type should show how to call it.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 24 Jan 2004 22:05:08 +0000 (22:05 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 24 Jan 2004 22:05:08 +0000 (22:05 +0000)
doc/src/sgml/plpgsql.sgml

index 30f7f3c4802f27df538aa23b19662e37b2d623bd..0e7f7ad5d0a0d591bb04bb77b48fdc5fbfb1d884 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.33 2004/01/22 19:50:21 neilc Exp $
+$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.34 2004/01/24 22:05:08 tgl Exp $
 -->
 
 <chapter id="plpgsql"> 
@@ -685,6 +685,8 @@ BEGIN
     RETURN in_t.f1 || use_t.f3 || in_t.f5 || use_t.f7;
 END;
 ' LANGUAGE plpgsql;
+
+SELECT use_two_tables(t.*) FROM tablename t WHERE ... ;
 </programlisting>
    </para>
   </sect2>