pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: Re: pg_dumpall failed
6+ messages / 2 participants
[nested] [flat]

* Re: Re: pg_dumpall failed
@ 2001-08-30 19:58  Stephan Szabo <sszabo@megazone23.bigpanda.com>
  parent: Oleg Lebedev <olebedev@waterford.org>
  0 siblings, 1 reply; 6+ messages in thread

From: Stephan Szabo @ 2001-08-30 19:58 UTC (permalink / raw)
  To: Oleg Lebedev <olebedev@waterford.org>; +Cc: pgsql-admin@postgresql.org


On Thu, 30 Aug 2001, Oleg Lebedev wrote:

> I can't find any reference to this table in my current database.
> What's the best way to find this out?
> thank you,

Try a 
 select * from pg_rules;

And see if any of the rule definitions mention the table.




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Re: pg_dumpall failed
@ 2001-08-30 20:02  Oleg Lebedev <olebedev@waterford.org>
  0 siblings, 1 reply; 6+ messages in thread

From: Oleg Lebedev @ 2001-08-30 20:02 UTC (permalink / raw)
  To: Stephan Szabo <sszabo@megazone23.bigpanda.com>; +Cc: pgsql-admin@postgresql.org

I can't find any reference to this table in my current database.
What's the best way to find this out?
thank you,

Oleg

Stephan Szabo wrote:

> On Thu, 30 Aug 2001, Oleg Lebedev wrote:
>
> > Hi,
> > I am trying to upgrade to 7.1.2 and when I use:
> > pg_dumpall -o > file.bac
> > I get an error saying:
> > dumpRules(): SELECT failed for table setmedias. Explanation from backend:
> > 'ERROR: cache lookup of attribute 5 in relation 23945 failed"
> >
> > As I understand setmedias table corresponds to relation 23945, but I dropped
> > it a long time ago. How should remove this relation pointer?
> > thanks,
>
> It sounds like you have a rule that still refers to the dead table.




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Re: pg_dumpall failed
@ 2001-08-30 20:06  Stephan Szabo <sszabo@megazone23.bigpanda.com>
  parent: Oleg Lebedev <olebedev@waterford.org>
  0 siblings, 1 reply; 6+ messages in thread

From: Stephan Szabo @ 2001-08-30 20:06 UTC (permalink / raw)
  To: Oleg Lebedev <olebedev@waterford.org>; +Cc: pgsql-admin@postgresql.org


Oops, of course, the row in pg_class isn't there so 
the pg_rules view won't show it.

Okay, try
select * from pg_rewrite where ev_class=23945;


On Thu, 30 Aug 2001, Oleg Lebedev wrote:

> select * from pg_rules
> returned NO tuples.
> What should I do next?
> thanks,
> 
> Oleg
> 
> Stephan Szabo wrote:
> 
> > On Thu, 30 Aug 2001, Oleg Lebedev wrote:
> >
> > > I can't find any reference to this table in my current database.
> > > What's the best way to find this out?
> > > thank you,
> >
> > Try a
> >  select * from pg_rules;
> >
> > And see if any of the rule definitions mention the table.
> 





^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Re: pg_dumpall failed
@ 2001-08-30 20:20  Oleg Lebedev <olebedev@waterford.org>
  parent: Stephan Szabo <sszabo@megazone23.bigpanda.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Oleg Lebedev @ 2001-08-30 20:20 UTC (permalink / raw)
  To: Stephan Szabo <sszabo@megazone23.bigpanda.com>; +Cc: pgsql-admin@postgresql.org

select * from pg_rules
returned NO tuples.
What should I do next?
thanks,

Oleg

Stephan Szabo wrote:

> On Thu, 30 Aug 2001, Oleg Lebedev wrote:
>
> > I can't find any reference to this table in my current database.
> > What's the best way to find this out?
> > thank you,
>
> Try a
>  select * from pg_rules;
>
> And see if any of the rule definitions mention the table.




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Re: pg_dumpall failed
@ 2001-08-30 21:53  Oleg Lebedev <olebedev@waterford.org>
  parent: Stephan Szabo <sszabo@megazone23.bigpanda.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Oleg Lebedev @ 2001-08-30 21:53 UTC (permalink / raw)
  To: Stephan Szabo <sszabo@megazone23.bigpanda.com>; +Cc: pgsql-admin@postgresql.org

I tried
select * from pg_rewrite where ev_class=23945;
No tuples were returned.
What should I do next?
thanks,

Oleg

Stephan Szabo wrote:

> Oops, of course, the row in pg_class isn't there so
> the pg_rules view won't show it.
>
> Okay, try
> select * from pg_rewrite where ev_class=23945;
>
> On Thu, 30 Aug 2001, Oleg Lebedev wrote:
>
> > select * from pg_rules
> > returned NO tuples.
> > What should I do next?
> > thanks,
> >
> > Oleg
> >
> > Stephan Szabo wrote:
> >
> > > On Thu, 30 Aug 2001, Oleg Lebedev wrote:
> > >
> > > > I can't find any reference to this table in my current database.
> > > > What's the best way to find this out?
> > > > thank you,
> > >
> > > Try a
> > >  select * from pg_rules;
> > >
> > > And see if any of the rule definitions mention the table.
> >
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://www.postgresql.org/search.mpl




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Re: pg_dumpall failed
@ 2001-08-30 22:53  Oleg Lebedev <olebedev@waterford.org>
  parent: Oleg Lebedev <olebedev@waterford.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Oleg Lebedev @ 2001-08-30 22:53 UTC (permalink / raw)
  To: Stephan Szabo <sszabo@megazone23.bigpanda.com>; pgsql-admin@postgresql.org

Thanks a lot Stephan,
dropping the right rule solved the problem.
Oleg

Oleg Lebedev wrote:

> I tried
> select * from pg_rewrite where ev_class=23945;
> No tuples were returned.
> What should I do next?
> thanks,
>
> Oleg
>
> Stephan Szabo wrote:
>
> > Oops, of course, the row in pg_class isn't there so
> > the pg_rules view won't show it.
> >
> > Okay, try
> > select * from pg_rewrite where ev_class=23945;
> >
> > On Thu, 30 Aug 2001, Oleg Lebedev wrote:
> >
> > > select * from pg_rules
> > > returned NO tuples.
> > > What should I do next?
> > > thanks,
> > >
> > > Oleg
> > >
> > > Stephan Szabo wrote:
> > >
> > > > On Thu, 30 Aug 2001, Oleg Lebedev wrote:
> > > >
> > > > > I can't find any reference to this table in my current database.
> > > > > What's the best way to find this out?
> > > > > thank you,
> > > >
> > > > Try a
> > > >  select * from pg_rules;
> > > >
> > > > And see if any of the rule definitions mention the table.
> > >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://www.postgresql.org/search.mpl
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster




^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2001-08-30 22:53 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-08-30 20:02 Re: Re: pg_dumpall failed Oleg Lebedev <olebedev@waterford.org>
2001-08-30 19:58 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2001-08-30 20:20   ` Oleg Lebedev <olebedev@waterford.org>
2001-08-30 20:06     ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2001-08-30 21:53       ` Oleg Lebedev <olebedev@waterford.org>
2001-08-30 22:53         ` Oleg Lebedev <olebedev@waterford.org>

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