title: creating jobs and schedules programmatically with pgagent
body: <p>Is there a way to create and manage jobs/schedules in pgagent programmatically, i.e. WITHOUT using pgAdmin ?</p>
  
  <p>I suspect there may be a way of doing this by writing a postgres client using libpq (in case pgagent does not support this behavior out of the box) - but I am not sure how to go about it - if I need to go down the rought of writing my OWN API for job/schedule CRUD functionality.</p>
  
  <p>So basically I am asking two questions:</p>
  
  <ul>
  <li>is there a way to create/administer jobs and schedules in pagent programmatically?</li>
  <li>If no, to the above question, which parts of the pagagent code do I need to hook into in order to provide my own job/schedule CRUD functionality?</li>
  </ul>