postgresql:basic_postgre_sql_querys
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
basic_postgre_sql_querys [2017/08/11 10:34] – dodger | postgresql:basic_postgre_sql_querys [2018/04/17 08:45] – ↷ Page moved from basic_postgre_sql_querys to postgresql:basic_postgre_sql_querys dodger | ||
---|---|---|---|
Line 127: | Line 127: | ||
</ | </ | ||
+ | <code sql> | ||
+ | SELECT c.relname, np.nspname, u.usename, c.relkind | ||
+ | FROM pg_class c, | ||
+ | pg_user u, | ||
+ | pg_namespace np | ||
+ | WHERE u.usesysid=c.relowner | ||
+ | AND np.oid= c.relnamespace | ||
+ | AND c.relkind IN (' | ||
+ | ; | ||
+ | </ | ||
===== list columns in table ===== | ===== list columns in table ===== | ||
Line 175: | Line 184: | ||
SELECT * FROM information_schema.role_table_grants where grantee not in (' | SELECT * FROM information_schema.role_table_grants where grantee not in (' | ||
</ | </ | ||
+ | |||
+ | |||
+ | <code sql> | ||
+ | select * from (select grantee, table_schema, | ||
+ | </ | ||
+ | |||
+ | |||
===== Udt grants ===== | ===== Udt grants ===== | ||
<code sql> | <code sql> |