title: PostgreSQL and queue commands
body: <p>I would like to know if there is a way to quere my queries. I am doing some basic text matching in psql and each query (which is saved in a different script) takes about 6 hours to run. I was wondering if there is a way to queue my scripts? </p>
  
  <p>For example;</p>
  
  <p>my database is called; "data"</p>
  
  <p>my scipts are called; cancer, heart, death</p>
  
  <p>and I am doing the following;</p>
  
  <pre><code> data; \i cancer;
   data; \i heart;
   data; \i death;
  </code></pre>
  
  <p>But I have to come back every so often and check whether it is running or not etc which doesn't seem very efficient.</p>
  
  <p>I am new to postgresql so appreciate any help.</p>