title: How to query user group privileges in postgresql?
body: <p>So in postgresql I can do something like:</p>
  
  <pre><code>SELECT has_table_privilege('myuser', 'mytable', 'select')
  </code></pre>
  
  <p>to see whether <code>myuser</code> has select access on <code>mytable</code>.  Is there something similar for user groups?  Basically, I'd like to be able to submit a query to see if a group has certain privileges on a specified table.</p>
  
  <p>Thanks! </p>