postgres数据库报错无法写入文件 “base/pgsql_tmp/pgsql_tmp215574.97“: 设备上没有空间

作者 : admin 本文共463个字,预计阅读时间需要2分钟 发布时间: 2024-06-10 共4人阅读

解决思路:
base/pgsql_tmp下临时表空间不够
需要新建一个临时表空间指定到根目录之外的其他目录
并且修改默认临时表空间参数
解决方法:

 select * from pg_settings where name = 'temp_tablespaces';
  
mkdir /home/postgres/tbs_tmp
CREATE TABLESPACE tbs_tmp LOCATION '/home/postgres/tbs_tmp/';
	
alter system set temp_tablespaces='tbs_tmp';

 select pg_reload_conf();

或者会话级别处理

mkdir /home/postgres/tbs_tmp
CREATE TABLESPACE tbs_tmp LOCATION '/home/postgres/tbs_tmp/';
set session temp_tablespaces='tbs_tmp';

参考文章:http://blog.csdn.net/weixin_34194702/article/details/89750375

本站无任何商业行为
个人在线分享 » postgres数据库报错无法写入文件 “base/pgsql_tmp/pgsql_tmp215574.97“: 设备上没有空间
E-->