I get an error “could not write block … of temporary file no space left on device …” using postgresql

前端 未结 3 1244
闹比i
闹比i 2021-02-19 04:35

I\'m running a really big query, that insert a lot of rows in table, almost 8 million of rows divide in some smaller querys, but in some moment appear that error : \"I get an er

3条回答
  •  深忆病人
    2021-02-19 05:15

    The error is quite self-explanatory. You are running a big query yet you do not have enough disk space to do so. If postgresql is installed in /opt...check if you have enough space to run the query. If not LIMIT the output to confirm you are getting the expected output and then proceed to run the query and write the output to a file.

提交回复
热议问题