'Anyelement' parameter
postgres=#
postgres=# CREATE FUNCTION is_greater(anyelement, anyelement) RETURNS boolean AS $$
postgres$# SELECT $1 > $2;
postgres$# $$ LANGUAGE SQL;
CREATE FUNCTION
postgres=#
postgres=# SELECT is_greater(1, 2);
REATE
is_greater
------------
f
(1 row)
postgres=#
postgres=# drop function is_greater(anyelement, anyelement);
DROP FUNCTION
postgres=#
postgres=#
Related examples in the same category