Guest User

Untitled

a guest
Jan 22nd, 2015
180
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. select schemaname||'.'||tablename from pg_tables
  2. where has_table_privilege ('username', schemaname||'.'||tablename, 'select')
  3. AND
  4. schemaname NOT IN ('pg_catalog', 'information_schema')
  5. order by schemaname||'.'||tablename;
RAW Paste Data