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

解决思路:
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';

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

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-09 02:02:05       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-09 02:02:05       100 阅读
  3. 在Django里面运行非项目文件

    2024-06-09 02:02:05       82 阅读
  4. Python语言-面向对象

    2024-06-09 02:02:05       91 阅读

热门阅读

  1. creating an HTML file with SQL*Plus

    2024-06-09 02:02:05       29 阅读
  2. CVPR2024论文解读大盘点

    2024-06-09 02:02:05       29 阅读
  3. 【Web API DOM08】事件汇总(加载事件、滚动事件)

    2024-06-09 02:02:05       25 阅读
  4. 新日本语教程 上册语法汇总

    2024-06-09 02:02:05       25 阅读
  5. Electric dust cart introduction

    2024-06-09 02:02:05       32 阅读
  6. element联级别选择器回显数据

    2024-06-09 02:02:05       31 阅读
  7. Android-Q升级-Camera记录

    2024-06-09 02:02:05       30 阅读