随笔分类 -  PostgreSQL

PG数据库
摘要:利用 cat -n postmaster.pid 显示内容 [root@ceph-104 pgsql]# cat -n postmaster.pid 1 37935 # 代表Postgresql主进程的PID 2 /var/lib/zstor/zms/pgsql # 代表数据目录 3 1620265 阅读全文
posted @ 2021-05-06 10:33 枫叶艾辰 阅读(320) 评论(0) 推荐(0)
摘要:(1)查询当前表被哪些子表所依赖 SELECT x.table_name, x.column_name FROM information_schema.key_column_usage x #key_column_usage是系统列信息表 INNER JOIN (SELECT t.relname, 阅读全文
posted @ 2021-03-18 10:45 枫叶艾辰 阅读(388) 评论(0) 推荐(0)