pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Aleksandr Dushein <adushein@rutube.ru>
Cc: pgsql-bugs@postgresql.org
Cc: Bruce Momjian <bruce@momjian.us>
Subject: Re: BUG #5718: Cannot start postgres (FATAL: invalid cache id: 19)
Date: Wed, 20 Oct 2010 12:57:16 -0400
Message-ID: <29688.1287593836@sss.pgh.pa.us> (raw)
In-Reply-To: <201010200944.o9K9i981095017@wwwmaster.postgresql.org>
References: <201010200944.o9K9i981095017@wwwmaster.postgresql.org>

"Aleksandr Dushein" <adushein@rutube.ru> writes:
> Description:        Cannot start postgres (FATAL:  invalid cache id: 19)

> Hello. I was upgraded my database from 8.4.4 то 9.0.1 one week ago by
> pg_dump/pg_restore. Yesterday database stop responding with message ERROR: 
> database is not accepting commands to avoid wraparound data loss
> I trying to restart in single mode and fail with the same error. 

Ugh.  The "invalid cache id" failure is my fault.  You can fix that by
applying this patch to 9.0:
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=c98cd9bdb618794643b670c8240c0aad213...
after which you'll probably need to do a manual vacuum with a standalone
backend before the DB will restart.

However, the bigger question is how you got into this state in the first
place.  Even if you'd had autovacuum turned off, it should have
protected you against a wraparound.  I suspect that pg_upgrade is
failing to preserve datfrozenxid and related values properly.  Do you
by any chance still have the 8.4 database available for examination?
Do you have an idea how many transactions you executed since converting?

Bruce: exactly what is pg_upgrade's scheme for getting the right
frozenxid values into the new catalogs, anyway?

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <29688.1287593836@sss.pgh.pa.us>
Permalink:  ../29688.1287593836@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29688.1287593836@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, adushein@rutube.ru, bruce@momjian.us
  Subject: Re: BUG #5718: Cannot start postgres (FATAL: invalid cache id: 19)
  In-Reply-To: <29688.1287593836@sss.pgh.pa.us>
  References: <201010200944.o9K9i981095017@wwwmaster.postgresql.org> <29688.1287593836@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox