X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1BEDF52947 for ; Fri, 10 Jun 2005 13:34:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 77027-10 for ; Fri, 10 Jun 2005 16:34:23 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 09E15528B1 for ; Fri, 10 Jun 2005 13:34:21 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j5AGYGDt023358; Fri, 10 Jun 2005 12:34:16 -0400 (EDT) To: "Colin E. Freas" Cc: pgsql-admin@postgresql.org Subject: Re: How to recover when can't start database In-reply-to: <42A9B2B9.80907@georgetown.edu> References: <42A9B2B9.80907@georgetown.edu> Comments: In-reply-to "Colin E. Freas" message dated "Fri, 10 Jun 2005 11:33:13 -0400" Date: Fri, 10 Jun 2005 12:34:15 -0400 Message-ID: <23357.1118421255@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/72 X-Sequence-Number: 17827 "Colin E. Freas" writes: > 2005-06-07 16:02:38 EDTLOG: statement: update pg_class set > reltriggers=foo.c from (select relname,count(tgrelid) as c from > pg_class,pg_trigger where pg_class.oid=tgrelid and relnamespace=2200 > group by relname) foo; I'm afraid that database is toast :-(. You managed to overwrite reltriggers in every row of pg_class, including all the system catalogs, including some that absolutely positively cannot have triggers ... like pg_trigger for instance. -> try to open pg_class ... hmm, it says it has triggers -> try to open pg_trigger to read triggers ... hmm, it says it has triggers -> try to open pg_trigger to read triggers ... hmm, it says it has triggers -> try to open pg_trigger to read triggers ... recurse until out of stack space. regards, tom lane