corrupt-data

Repair Corrupt database postgresql

爷,独闯天下 提交于 2019-11-28 07:02:08
问题 I have multiple errors with my postgresql db, which resulted after a power surge: I cannot access most tables from my database. When I try for example select * from ac_cash_collection , I get the foolowing error: ERROR: missing chunk number 0 for toast value 118486855 in pg_toast_2619 when I try pg_dump I get the following error: Error message from server: ERROR: relation "public.st_stock_item_newlist" does not exist pg_dump: The command was: LOCK TABLE public.st_stock_item_newlist IN ACCESS

GZipStream doesn't detect corrupt data (even CRC32 passes)?

折月煮酒 提交于 2019-11-28 04:17:50
问题 I'm using GZipStream to compress / decompress data. I chose this over DeflateStream since the documentation states that GZipStream also adds a CRC to detect corrupt data, which is another feature I wanted. My "positive" unit tests are working well in that I can compress some data, save the compressed byte array and then successfully decompress it again. The .NET GZipStream compress and decompress problem post helped me realize that I needed to close the GZipStream before accessing the