title: PostgreSQL How to check if my function is still running
body: <p>Just a quick question . </p>
  
  <p>I have one heavy function in PostgreSQL 9.3 , how I can check if the function is still running after several hours and how to run a function in background in psql ( my connection is unstable from time to time)</p>
  
  <p>Thanks </p>