title: How to track changes in any function in PostgreSQL
body: <p>I want track changes in any function in PostgreSQL.</p>
  
  <p>Example - Suppose, i have function <code>fun_name()</code> in postgesql database and i am doing modifications in function.  </p>
  
  <p>Now, i want to track records like </p>
  
  <pre><code>DateTime,Schema_name,Function_name,old_func_text,new_func_text
  </code></pre>
  
  <p>Please suggest the best possible way to achieve this in postgresql.</p>
  
  <p>I am studying event triggers in <a href="https://www.postgresql.org/docs/9.3/static/sql-createeventtrigger.html" rel="noreferrer">https://www.postgresql.org/docs/9.3/static/sql-createeventtrigger.html</a></p>
  
  <p>Thanks.</p>