From: Peter Eisentraut Date: Sun, 25 Jul 2010 08:30:42 +0000 (+0000) Subject: Add INSERT statement to example so that it can be reproduced X-Git-Tag: REL9_1_ALPHA1~181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edff75bef809629c197c27b23f57baa36330d12e;p=postgresql Add INSERT statement to example so that it can be reproduced from John Gage --- diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml index b2795c2cf0..fcbf640729 100644 --- a/doc/src/sgml/xfunc.sgml +++ b/doc/src/sgml/xfunc.sgml @@ -1,4 +1,4 @@ - + User-Defined Functions @@ -293,6 +293,8 @@ CREATE TABLE emp ( cubicle point ); +INSERT INTO emp VALUES ('Bill', 4200, 45, '(2,1)'); + CREATE FUNCTION double_salary(emp) RETURNS numeric AS $$ SELECT $1.salary * 2 AS salary; $$ LANGUAGE SQL;