Skip to content

Instantly share code, notes, and snippets.

@vithalsamp
Created February 25, 2018 16:35
Show Gist options
  • Save vithalsamp/6d8214a3dc77040f986b58103f688c2e to your computer and use it in GitHub Desktop.
Save vithalsamp/6d8214a3dc77040f986b58103f688c2e to your computer and use it in GitHub Desktop.
create or replace function udf_nested_func (float, float )
returns float
stable
as $$
select udf_sql_bignum ($1, $2)
$$ language sql;
--Call function
training=# select udf_nested_func(10.3,100.2);
udf_nested_func
-----------------
100.2
(1 row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment