Mention 'void' as the proper return type when there's nothing to
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 Nov 2006 07:17:36 +0000 (07:17 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 Nov 2006 07:17:36 +0000 (07:17 +0000)
return, per suggestion from Joachim Wieland.

doc/src/sgml/ref/create_function.sgml

index 429084b3a0d9808e452892e392f1daab9114db0f..9c95054b54c49ed30cede6dce120e2e1c1cdddec 100644 (file)
@@ -153,6 +153,8 @@ CREATE [ OR REPLACE ] FUNCTION
        or may reference the type of a table column.
        Depending on the implementation language it may also be allowed
        to specify <quote>pseudotypes</> such as <type>cstring</>.
+       If the function is not supposed to return a value, specify
+       <type>void</> as the return type.
       </para>
       <para>
        When there are <literal>OUT</> or <literal>INOUT</> parameters,