一、查詢Schema信息
1、select * from pg_namespace;
2、select * from information_schema.schemata;
3、select * from "current_schema"()
二、查詢表空間信息
select * from pg_tablespace;
三、查詢表信息
1、所有表
select * from pg_tables
2、分區表
select * from pg_partitioned_table
四、查詢索引信息
1、索引基本情況
select * from pg_index
select * from pg