【发布时间】:2020-12-22 20:54:56
【问题描述】:
我创建了一个新的 postgres 服务器,当我尝试执行这个 sql 命令时:
DROP TABLE IF EXISTS table_3;
CREATE TABLE table_3 AS
SELECT
t1.id,
t1.fild_2,
t1.fild_3,
t1.fild_4,
t1.fild_5,
t2.fild_6,
t2.fild_7,
t2.fild_8
FROM table1 t1
RIGHT JOIN table2 t2
ON t1.id = t2.id
table1 和 table2 包含大约 300 000 条记录 我收到这样的错误:
ERROR: could not extend file "base/367684/370837.16": wrote only 4096 of 8192 bytes at block 2182494
HINT: Check free disk space.
SQL state: 53100
有什么想法吗?
问候, 小臂
【问题讨论】:
-
也许您应该检查可用磁盘空间?
HINT: Check free disk space.?? -
这不是“内存”问题,而是磁盘空间问题。存储 Postgres 数据库的硬盘已满。
-
@a_horse_with_no_name 所以我需要清理磁盘空间?还是什么?
标签: sql postgresql