title: How to install pgAgent service on windows
body: <p>I am new in postgreSQL database , I recently found that postgreSQL support SQL Job by pgAgent. I am using windows XP operating system. </p>
  
  <p>I searched lots about pgAgent on Google and trying to configure pgAgent on machine. </p>
  
  <p><strong>Download pgAgent package in which I found <code>pgagent.sql</code> file after executing this file JOB(0) icon is appear on my pgAdmin III object panel.</strong> like following image.</p>
  
  <p><img src="https://i.stack.imgur.com/FJQdA.png" alt="enter image description here"></p>
  
  <p>But I am facing problem to register pgAgent service. As per postgres sql documentation following is next steps to register services but I am fail to do this. or don't know how to configure pgAgent service.</p>
  
  <p>Following step from postgre sql documentaion : </p>
  
  <pre><code>The service may be quite simply installed from the command line as follows:
  "C:\Program Files\pgAdmin III\pgAgent" INSTALL pgAgent -u postgres -p secret hostaddr=127.0.0.1 dbname=pgadmin user=postgres
  </code></pre>
  
  <p>but I tried lot to do this, please help in how to register pgAgent service with Windows XP.</p>
  
  <p>reference link of postgre sql : <a href="http://www.pgadmin.org/docs/1.6/pgagent-install.html" rel="noreferrer">http://www.pgadmin.org/docs/1.6/pgagent-install.html</a></p>
  
  <p>Please help in this , Thanks in Advance ! </p>