我有一项服务正在运行并插入数据(大量数据)。有时,这只是大约几周,我收到此错误:
ERROR: XX001: could not read block 2354 of relation 1663/17633/17925: read only 0 of 8192 bytes.
此错误来自 PostGresql 的 Npgsql 连接器:
Exception trace: at Npgsql.NpgsqlConnector.CheckErrors()
at Npgsql.NpgsqlConnector.CheckErrorsAndNotifications()
at Npgsql.NpgsqlCommand.ExecuteCommand()
at Npgsql.NpgsqlCommand.ExecuteNonQuery()
如果我在 PGAdmin 中执行创建该错误的查询,我也会遇到此错误。任何人都知道为什么这个没有什么特别之处的插入查询会出现这个错误?这个表有一个主键但没有外键,我已经手动验证过,这个表不包含主键。
我该如何解决该错误?