refactor: 机器相关配置迁移至系统配置、pgsql数据操作完善、新增context-path

This commit is contained in:
meilin.huang
2023-11-12 20:14:44 +08:00
parent 27c53385f2
commit 76527d95bd
55 changed files with 793 additions and 404 deletions

View File

@@ -1,3 +1,13 @@
--PGSQL_DB_SCHEMAS schemas
select
n.nspname as "schemaName"
from
pg_namespace n
where
has_schema_privilege(n.nspname, 'USAGE')
and n.nspname not like 'pg_%'
and n.nspname != 'information_schema'
---------------------------------------
--PGSQL_TABLE_INFO 表详细信息
select
c.relname as "tableName",
@@ -10,12 +20,10 @@ from
join pg_namespace n on
c.relnamespace = n.oid
join pg_stat_user_tables psut on
psut.relid = c."oid"
psut.relid = c.oid
where
n.nspname = (
select
current_schema ()
)
has_table_privilege(CAST(c.oid AS regclass), 'SELECT')
and n.nspname = current_schema()
and c.reltype > 0
---------------------------------------
--PGSQL_INDEX_INFO 表索引信息