Functions in postgres


/ Published in: SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.