Posted By

mavallad on 08/21/08


Tagged

postgres


Versions (?)

Functions in postgres


 / Published in: SQL
 

  1. -- View functions in postgres
  2. \df
  3. SELECT * FROM pg_proc WHERE proname = 'myfunction';
  4.  
  5. -- View code of the function
  6. SELECT prosrc FROM pg_proc WHERE proname = 'myfunciont';
  7.  
  8. -- Execute a function
  9. SELECT myfunction(parameters);

Report this snippet  

You need to login to post a comment.