X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1EB4FD1B592 for ; Thu, 30 Oct 2003 23:59:01 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 63569-02 for ; Thu, 30 Oct 2003 19:58:31 -0400 (AST) Received: from sj-iport-3.cisco.com (sj-iport-3-in.cisco.com [171.71.176.72]) by svr1.postgresql.org (Postfix) with ESMTP id 7015BD1B52F for ; Thu, 30 Oct 2003 19:58:28 -0400 (AST) Received: from cisco.com (171.71.177.237) by sj-iport-3.cisco.com with ESMTP; 30 Oct 2003 16:01:05 -0800 Received: from cjwhitew2k01 (sjc-vpn1-301.cisco.com [10.21.97.45]) by sj-core-1.cisco.com (8.12.9/8.12.6) with ESMTP id h9UNwNjP006424 for ; Thu, 30 Oct 2003 15:58:24 -0800 (PST) Reply-To: From: "Chris White (cjwhite)" To: Subject: Another database recovery problem Date: Thu, 30 Oct 2003 15:59:43 -0800 Message-ID: <002501c39f41$e3d87410$0400a8c0@amer.cisco.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0026_01C39EFE.D5B53410" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.6 tagged_above=0.0 required=5.0 tests=BAYES_30, HTML_20_30 X-Spam-Level: X-Archive-Number: 200310/380 X-Sequence-Number: 10941 This is a multi-part message in MIME format. ------=_NextPart_000_0026_01C39EFE.D5B53410 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit My 7.2.1 database was in the middle of inserting a large object when the power went down. When I restart the database I getting the following messages: postgres: startup subprocess : DEBUG sql sql sql DEBUG: database system was interrupted at 2003-10-08 09:29:12 PDT postgres: startup subprocess : DEBUG sql sql sql DEBUG: checkpoint postgres: startup subprocess : DEBUG sql sql sql DEBUG: redo record is at 0/115A3C; undo record is at 0/0; shutdown TRUE postgres: startup subprocess : DEBUG sql sql sql DEBUG: next transaction id: 95; next oid: 16557 postgres: startup subprocess : DEBUG sql sql sql DEBUG: database system was not properly shut down; automatic recovery in progress postgres: startup subprocess : DEBUG sql sql sql DEBUG: redo starts at 0/115A7C postgres: startup subprocess : DEBUG sql sql sql DEBUG: ReadRecord: record with zero length at 0/157F4C postgres: startup subprocess : DEBUG sql sql sql DEBUG: redo done at 0/157F28 postgres: startup subprocess : DEBUG sql sql sql DEBUG: database system is ready When I vacuum the database to remove used entries and to compact the db, I get the following errors: postgres: voicemail aesop 127.0.0.1 VACUUM: DEBUG sql sql sql DEBUG --Relation pg_largeobject-- postgres: voicemail aesop 127.0.0.1 VACUUM: INFO sql sql sql NOTICE: Rel pg_largeobject: TID 1/1: InsertTransactionInProgress 0 - can't shrink relation postgres: voicemail aesop 127.0.0.1 VACUUM: INFO sql sql sql NOTICE: Rel pg_largeobject: TID 1/2: InsertTransactionInProgress 0 - can't shrink relation postgres: voicemail aesop 127.0.0.1 VACUUM: INFO sql sql sql NOTICE: Rel pg_largeobject: TID 1/4: InsertTransactionInProgress 0 - can't shrink relation postgres: voicemail aesop 127.0.0.1 VACUUM: CRASH sql sql sql FATAL2: open of /data/sql/pg_clog/09C6 failed: No such file or directory postmaster: DEBUG sql sql sql DEBUG: server process (pid 1393) exited with exit code 2 postmaster: DEBUG sql sql sql DEBUG: terminating any other active server processes postmaster: ERROR sql sql sql FATAL 1: The database system is in recovery mode and from then on any time we try to connect we get a message saying database is in recovery mode and it never comes out. How can I recover this database or do I have to restore a prior backup? Chris White ------=_NextPart_000_0026_01C39EFE.D5B53410 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
M<= SPAN=20 class=3D386040321-30102003>y 7.2.1 database was in the middle of inserting = a large=20 object when the power went down. When I restart the database I getting= the=20 following messages:
postgres:=20 startup subprocess   :   DEBUG sql sql sql DEBUG: = =20 database system was interrupte= d at=20 2003-10-08 09:29:12 PDT
postgres: startup subprocess  =20 :   DEBUG sql sql sql DEBUG:  checkpoint
postgres: startu= p=20 subprocess   :   DEBUG sql sql sql DEBUG:  redo re= cord=20 is at 0/115A3C; undo record is at 0/0; shutdown TRUE
postgres: startup= =20 subprocess   :   DEBUG sql sql sql DEBUG:  next=20 transaction id: 95; next oid: 16557
postgres: startup subprocess &n= bsp;=20 :   DEBUG sql sql sql DEBUG:  database system was not proper= ly=20 shut down; automatic recovery in progress
postgres: startup=20 subprocess   :   DEBUG sql sql sql DEBUG:  redo st= arts=20 at 0/115A7C
postgres: startup subprocess   :   DEBUG= sql=20 sql sql DEBUG:  ReadRecord: record with zero length at=20 0/157F4C
postgres: startup subprocess   :   DEBUG sq= l sql=20 sql DEBUG:  redo done at=20 0/157F28
postgres: startup subprocess   :   DEBUG sq= l sql=20 sql DEBUG:  database system is ready
 
 
When I vacuum the database to remove used entries= and to=20 compact the db, I get the following errors:

postgres: voicemail aesop 127.0.0.1 VACUUM:   DEBUG sql = sql sql=20 DEBUG --Relation pg_largeobject--
postgres: voicemail aesop 127.0.0= .1=20 VACUUM:    INFO sql sql sql NOTICE:  Rel pg_largeobject= : TID=20 1/1: InsertTransactionInProgress 0 - can't shrink relation
postgres:=20 voicemail aesop 127.0.0.1 VACUUM:    INFO sql sql sql=20 NOTICE:  Rel pg_largeobject: TID 1/2: InsertTransactionInProgress 0 - = can't=20 shrink relation
postgres: voicemail aesop 127.0.0.1=20 VACUUM:    INFO sql sql sql NOTICE:  Rel pg_largeobject= : TID=20 1/4: InsertTransactionInProgress 0 - can't shrink relation
postgres:=20 voicemail aesop 127.0.0.1 VACUUM:   CRASH sql sql sql FATAL2:&nbs= p;=20 open of /data/sql/pg_clog/09C6 failed: No such file or directory
postmaster:   DEBUG sql sql sql= =20 DEBUG:  server process (pid 1393) exited with exit code=20 2
postmaster:   DEBUG sql sql sql DEBUG:  terminating any= =20 other active server processes
postmaster:   ERROR sql sql sql = FATAL=20 1:  The database system is in recovery mode
 
and from then on any time we try to connec= t we get=20 a message saying database is in recovery mode and it never comes out. How c= an I=20 recover this database or do I have to restore a prior backup?
 
Chris=20 White


------=_NextPart_000_0026_01C39EFE.D5B53410--