--
-- first, define the functions.  Turn off echoing so that expected file
-- does not depend on contents of myfunc.sql.
--
\set ECHO none
\i myfunc.sql
\set ECHO all

-- table myfoo was created in main script since its type was needed
-- in order to define extract_field_as_text();
SELECT extract_field_as_text(myfoo, 'f2') from myfoo;


