postgres
文章平均质量分 62
wish503
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ERROR: role "data" cannot be dropped because some objects depend on it
PG删除用户报错: [postgres:7471@postgres] [08-24.19:50:18]=# drop user data; ERROR: role "data" cannot be dropped because some objects depend on it DETAIL: privileges for schema public 解决方法原创 2016-08-24 20:06:17 · 8149 阅读 · 0 评论 -
postgresSQL清理xlog
pg_log可以直接用rm删除,但是pg_xlog不行,清理步骤如下: 1、停库: [postgres@cnsz081285:d0cmu:7490 /paic/pg7490/data/pg_xlog]$ pg stop waiting for server to shut down.... done server stopped Lock file exists. exit Lock原创 2016-10-08 18:39:03 · 2723 阅读 · 0 评论 -
PG伪类型anyelement触发pg_pathman的一个bug
PG版本 9.5.5 pg_pathman 版本 1.3 问题: 今天用户上报一个问题,在跑建表脚本之后数据库连接被驳回,然后不清楚表是否创建成功。 再连到数据库做任何操作都会报如下错误: ERROR: could not determine which collation to use for string comparison HINT: Use the COLLATE cla原创 2017-08-22 15:27:02 · 1838 阅读 · 0 评论 -
pg常用命令
一、进程: 1)查询进程: select * from pg_stat_activity 说明: datname表示数据库名 procpid表示当前的SQL对应的PID query_start表示SQL执行开始时间 current_query表示当前执行的SQL语句 waiting表示是否正在执行,t表示正在执行,f表示已经执行完成 client_addr表示客户端IP地址原创 2016-08-30 17:45:55 · 5552 阅读 · 0 评论
分享