Re: Can not pg_dumpall

From: Somazx Interesting <somazx(at)home(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Can not pg_dumpall
Date: 2001-06-08 19:46:33
Message-ID: 5.1.0.14.0.20010608123902.02dd4700@mail.rct1.bc.wave.home.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

At 02:18 PM 6/8/2001 -0400, Tom Lane wrote:
>Somazx Interesting <somazx(at)home(dot)com> writes:
> > getTables(): SELECT (funcname) for trigger sa_eval_trigger_608 returned 0
> > tuples. Expected 1.
> > pg_dump failed on OnEd, exiting
>
>Kinda looks like you dropped some function that was still referenced by
>a trigger. Better drop the trigger too.

Taking that to mean, "try deleting that orphaned trigger" - but since I
don't know which table that trigger was on - I did it by deleting it
through pg_trigger, I now get somewhat worse errors:

getTables(): relation 'lessontable_548_118': 8 Triggers were expected, but
got 7

All the tables that use triggers and functions are expendable as they were
only tests - so I tried deleting them and I can't and get another error:

PostgreSQL said: ERROR: RelationBuildTriggers: 1 record(s) not found for
rel lessontable_548_118
Your query:

I think I've made quite the mess of things :)

I only care about the data in a few tables, which if I could pg_dump I
would just rebuild the database from the sql files and import the little
data that's valuable - (all of which doesn't use triggers or functions) -
but I can't even dump the data from non trigger/function using tables. It
gives this error again:

getTables(): relation 'lessontable_548_118': 8 Triggers were expected, but
got 7.

Andy "knows just enough to be dangerous" Koch.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2001-06-08 20:30:51 Re: Can not pg_dumpall
Previous Message mazzo 2001-06-08 19:06:10 linking tables