{"action":"opened","issue":{"number":16,"created_at":"2011-10-26T23:40:54Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"One thing that has always bothered me in the queue_classic setup process is this line: \r\n\r\n```bash\r\n$ ruby -r queue_classic -e \"QC::Database.new.load_functions\"\r\n```\r\n\r\nSome people call this function in an irb session, others place it in a migration. There has got to be a better way.\r\nOne idea is to have the worker load the function when it is initialized. Producers do not need this function thus is is safe to have the worker be responsible for loading it's function.\r\n\r\nWe would have to create or replace the function each time we init a worker, so we should figure out some algorithm that loads the function only if it is not already there.","comments":0,"title":"Worker loads PL/pgSQL function on initialization","updated_at":"2011-10-26T23:40:54Z","url":"https://api.github.com/repos/ryandotsmith/queue_classic/issues/16","id":2063002,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"61b628931614c36307e37ae482573dbd","avatar_url":"https://secure.gravatar.com/avatar/61b628931614c36307e37ae482573dbd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/ryandotsmith","id":11726,"login":"ryandotsmith"},"html_url":"https://github.com/ryandotsmith/queue_classic/issues/16","labels":[{"name":"feature","url":"https://api.github.com/repos/ryandotsmith/queue_classic/labels/feature","color":"36eb09"}],"state":"open"},"legacy":{"number":16,"action":"opened","issue":2063002}}