diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml index f88bc0af95..2c43fe9b46 100644 --- a/doc/src/sgml/ref/create_function.sgml +++ b/doc/src/sgml/ref/create_function.sgml @@ -1,5 +1,5 @@ @@ -398,6 +398,17 @@ CREATE FUNCTION add(integer, integer) RETURNS integer LANGUAGE SQL IMMUTABLE RETURNS NULL ON NULL INPUT; + + + + + Increment an integer, making use of an argument name, in PL/PgSQL: + + +CREATE OR REPLACE FUNCTION increment(i integer) RETURNS integer AS ' + BEGIN + RETURN i + 1; + END;' LANGUAGE plpgsql;