Npgsql & Postgresql:错误:XX001:无法读取关系的块 2354
我有一个服务正在运行并插入数据(大量数据)。 有时,这只是大约几周的时间,我收到此错误:
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 中执行创建该错误的查询,我也会遇到此错误。 任何人都知道为什么这个没有什么特别的插入查询会出现此错误? 该表有主键但没有外键,我已经手动验证,该表不包含主键。
我该如何解决该错误?
I have a service running and inserting data (a lot of data). Sometime, and this is only about few weeks, I receive this error:
ERROR: XX001: could not read block 2354 of relation 1663/17633/17925: read only 0 of 8192 bytes.
This error is from the Npgsql connector of PostGresql:
Exception trace: at Npgsql.NpgsqlConnector.CheckErrors()
at Npgsql.NpgsqlConnector.CheckErrorsAndNotifications()
at Npgsql.NpgsqlCommand.ExecuteCommand()
at Npgsql.NpgsqlCommand.ExecuteNonQuery()
If I do the query that create that error inside PGAdmin, I have this error too. Anyone have an idea of why this Insert query that has nothing special has this error? This table has a primary key but not Foreign Key and I have verified manually, this table doesn't contain the primary key.
How can I solve that error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
鉴于错误“XX001”列出为“数据损坏” “你可能需要寻找备份。
Given that error "XX001" is listed as "DATA CORRUPTED" you probably need to reach for the backup.