Does YugabyteDB support UDFs (user-defined functions)?

Are postgres UDFs supported in YugabyteDB YSQL, and can these functions be called from the context of SQL statements?

Yes functions are available and can be called in sql statements.

We build on top of Postgresql codebase so most functionality is already supported.

See examples for sql and pl/pgsql functions:

1 Like