title: How do I create a cron job to run an postgres SQL function?
body: <p>I assume that all I need to do is to:</p>
  
  <ol>
  <li><p>Create an sql file e.g. nameofsqlfile.sql contents:</p>
  
  <p>perform proc_my_sql_funtion();</p></li>
  <li><p>Execute this as a cron job. </p></li>
  </ol>
  
  <p>However, I don't know the commands that I'd need to write to get this cron job executed as a postgres function for a specified host,port,database, user &amp; his password...?</p>