Hey Merlin,
Thanks. Starting postgres with -P was something that I did not try. Does postgres have any GIN or GIST system indexes though?
I would love to try it out, but the database has already been restored. Will definitely keep this in mind for the future though.
Thanks again for the help,
--
Robert Sosinski
On Wednesday, October 3, 2012 at 10:44 AM, Merlin Moncure wrote:
On Wed, Oct 3, 2012 at 9:33 AM, Robert Sosinski<rsosinski@xxxxxxxxxxxxxxxxxxx> wrote:We are running Postgres 9.1.3, and after stopping it by physically shuttingoff the machine, we rebooted and now get this error whenever we try to startit.2012-10-02 13:54:30 PDT LOG: database system was interrupted; last known upat 2012-10-02 13:46:20 PDT2012-10-02 13:54:30 PDT LOG: database system was not properly shut down;automatic recovery in progress2012-10-02 13:54:30 PDT LOG: redo starts at A/764C4C02012-10-02 13:54:30 PDT PANIC: GIN metapage disappeared2012-10-02 13:54:30 PDT CONTEXT: xlog redo Update metapage, node:1663/899422/21182896 blkno: 22012-10-02 13:54:30 PDT LOG: startup process (PID 940) was terminated bysignal 6: Aborted2012-10-02 13:54:30 PDT LOG: aborting startup due to startup processfailure2012-10-02 14:42:49 PDT LOG: database system was interrupted while inrecovery at 2012-10-02 13:54:30 PDT2012-10-02 14:42:49 PDT HINT: This probably means that some data iscorrupted and you will have to use the last backup for recovery.2012-10-02 14:42:49 PDT LOG: database system was not properly shut down;automatic recovery in progress2012-10-02 14:42:49 PDT LOG: redo starts at A/764C4C02012-10-02 14:42:49 PDT PANIC: GIN metapage disappeared2012-10-02 14:42:49 PDT CONTEXT: xlog redo Update metapage, node:1663/899422/21182896 blkno: 22012-10-02 14:42:49 PDT LOG: startup process (PID 954) was terminated bysignal 6: Aborted2012-10-02 14:42:49 PDT LOG: aborting startup due to startup processfailureI guess it is a problem with an index, because it is saying that there in aGIN metapage missing. Any idea how to get postgres to boot up after it getsinto this condition without having to recover from a backup? Wouldupgrading to 9.2 prevent this issue from happening again?You an boot it up in single user mode and force a reindex:"One way to do this is to shut down the server and start a single-userPostgreSQL server with the -P option included on its command line.Then, REINDEX DATABASE, REINDEX SYSTEM, REINDEX TABLE, or REINDEXINDEX can be issued, depending on how much you want to reconstruct. Ifin doubt, use REINDEX SYSTEM to select reconstruction of all systemindexes in the database. Then quit the single-user server session andrestart the regular server. See the postgres reference page for moreinformation about how to interact with the single-user serverinterface."Not sure if things have been improved in 9.2 -- historically gist/ginhaven't been as robust in terms of WAL/crash recovery IIRC.merlin