数据库
首页 > 数据库> > PostgreSQL常用命令及SQL--持续更新

PostgreSQL常用命令及SQL--持续更新

作者:互联网

查询系统表

查询视图

select * from pg_views  t where viewname like  'entity_sourcing%' ; 

查询表

select * from pg_tables t where tablename like 'entity%'
and schemaname = 'da_rre_srm'

查询函数

select
routine_name ,routine_schema, T.*
from information_schema.routines T 
where routine_catalog = 'CRLAND_DW'
 and routine_schema not in ('pg_catalog','public')
order by routine_name;

查询数据库大小

select pg_database_size('database_name');
select pg_database.datname, pg_database_size(pg_database.datname) AS size from pg_database; 

标签:PostgreSQL,database,--,routine,pg,常用命令,schema,select,size
来源: https://blog.csdn.net/m0_37263074/article/details/114276709