database - PostgreSQL 9.4 suddenly invalid memory alloc request size -
i'm building website used handle excel files stores , manipulate them (merging, view, etc.). i'm using postgresql 9.4 database, running on centos 6.6 vm 4gb ram. has 3 databases follow:
- postgres database
- db_raw, used placeholder data. excel uploaded website parsed, , data stored here. database consists of few tables used keep data required process excel, , huge table storing excel data >140 column , 1 million row
- db_processed, main database website. has few small tables operational of website (user table, access list, logging, etc), , 8 tables store processed excel data db_raw. each of 8 tables have around 40 column , million row.
the databases running fine until morning. tried connecting db_processed through pgadmin , putty, , postgresql gave me message
fatal: invalid memory alloc request size 144115188075856068
db_raw works fine, , nothing has been changed since 3 days ago far know. should can connect database again?
update : did @craigringer said , restarted service. manage connect database, tables gone :| keeps appearing in log
< 2015-09-21 12:27:22.155 wib >debug: performing replication slot checkpoint < 2015-09-21 12:27:22.158 wib >log: request flush past end of generated wal; request 46/9e0981d8, currpos 46/771c69b0 < 2015-09-21 12:27:22.158 wib >context: writing block 2 of relation base/18774/12766 < 2015-09-21 12:27:22.158 wib >error: xlog flush request 46/9e0981d8 not satisfied --- flushed 46/771c69b0 < 2015-09-21 12:27:22.158 wib >context: writing block 2 of relation base/18774/12766 < 2015-09-21 12:27:22.158 wib >warning: not write block 2 of base/18774/12766 < 2015-09-21 12:27:22.158 wib >detail: multiple failures --- write error might permanent.
this indicates corrupted data. faced problem , discovered @ least ways of how solve it.
the first way described here: https://confluence.atlassian.com/jirakb/invalid-memory-alloc-request-size-440107132.html
second described here: http://blog.dob.sk/2012/05/19/fixing-pg_dump-invalid-memory-alloc-request-size/
it cool improve function of second approach make automatic, though.
Comments
Post a Comment