Similar to the MySQL and Drizzle user defined functions for Gearman, we now have PostrgeSQL functions too! These allow you to submit jobs to the job server from within your SQL query, trigger, or stored procedure. Here’s a snippet of how this looks in PostgreSQL:
shell$ psql test
test=# SELECT gman_do('reverse', 'Hello World!');
gman_do
--------------
!dlroW olleH
(1 row)
test=#
Special thanks to Selena Deckelmann for helping get these working!