From: Peter Eisentraut Date: Sun, 25 Jul 2010 08:30:41 +0000 (+0000) Subject: Add INSERT statement to example so that it can be reproduced X-Git-Tag: REL9_0_BETA4~18 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=c12c561ba05610a680bb3d58f1ec5c98575ae0c7;p=users%2Fc2main%2Fpostgres.git 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..e728eb3064 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;