我正在使用大约 80GB 的数据将批量复制到 postgres 中。
\copy my_table FROM '/path/csv_file.csv' csv DELIMITER ','
在提交事务之前,我收到以下错误。
服务器意外关闭连接 这可能意味着服务器在处理请求之前或处理请求时异常终止。
在 PostgreSQL 日志中:
LOG:server process (PID 21122) was terminated by signal 9: Killed
LOG:terminating any other active server processes
WARNING:terminating connection because of crash of another server process
DETAIL:The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
HINT: In a moment you should be able to reconnect to the database and repeat your command.