首页 > postgresql不能执行写入(更新和插入)SQL

postgresql不能执行写入(更新和插入)SQL

不知道什么原因,我的postgresql今天突然不能执行写入(更新和插入)SQL,一旦运行这些SQL语句,就卡在那不动。查询没有问题。

我猜想是文件权限问题,我的数据库文件目录权限如下,有大神给我些意见吗?

$sudo ls -l /var/lib/postgresql/9.1/main
total 60
-rwx------ 1 postgres postgres  178  9月 28 17:47 backup_label.old
drwx------ 6 postgres postgres 4096  9月 29 13:40 base
drwx------ 2 postgres postgres 4096 11月  4 17:44 global
drwx------ 2 postgres postgres 4096  9月 28 12:09 pg_clog
drwx------ 4 postgres postgres 4096  9月 28 12:09 pg_multixact
drwx------ 2 postgres postgres 4096 11月  4 17:44 pg_notify
drwx------ 2 postgres postgres 4096  9月 28 12:09 pg_serial
drwx------ 2 postgres postgres 4096 11月  4 17:51 pg_stat_tmp
drwx------ 2 postgres postgres 4096  9月 28 12:09 pg_subtrans
drwx------ 2 postgres postgres 4096  9月 28 12:09 pg_tblspc
drwx------ 2 postgres postgres 4096  9月 28 12:09 pg_twophase
-rwx------ 1 postgres postgres    4  9月 28 12:09 PG_VERSION
drwx------ 3 postgres postgres 4096  9月 29 13:51 pg_xlog
-rwx------ 1 postgres postgres  133 11月  4 17:44 postmaster.opts
-rw------- 1 postgres postgres   93 11月  4 17:44 postmaster.pid
【热门文章】
【热门文章】