pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: Re: pg_dumpall failed
8+ messages / 4 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; 8+ messages in thread

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


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] 8+ messages in thread

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

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

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] 8+ 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; 8+ messages in thread

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


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] 8+ 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; 8+ messages in thread

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

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] 8+ 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; 8+ messages in thread

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

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] 8+ 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; 8+ messages in thread

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

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] 8+ messages in thread

* pg_dumpall failed
@ 2004-09-20 12:31  Chuming Chen <chen@musc.edu>
  0 siblings, 1 reply; 8+ messages in thread

From: Chuming Chen @ 2004-09-20 12:31 UTC (permalink / raw)
  To: pgsql-admin

Hi, all,

I am using  pg_dumpall (pg_dumpall -o > backup) to backup postgresql 
7.2.3 datatbase on Redhat Linux 8. It worked well, but recently, it 
failed and gave me the following messages:

pg_dump: query to get data of sequence "est_att_p_por_id_seq" returned 
name "est_att_p_porites_id_seq"
pg_dumap failed on xxxxx, exiting

Can anybody tell me what might go wrong here?

Thank you very much for your kind reply.


-- 
Chuming Chen
System Administrator & Programmer
Department of Biostatistics, Bioinformatics and Epidemiology
Medical University of South Carolina
135 Cannon Street, Suite 303
Charleston SC 29425
Tel: 843-792-1555 (O)




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

* Re: pg_dumpall failed
@ 2004-09-20 14:40  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Chuming Chen <chen@musc.edu>
  0 siblings, 0 replies; 8+ messages in thread

From: Tom Lane @ 2004-09-20 14:40 UTC (permalink / raw)
  To: chen@musc.edu; +Cc: pgsql-admin

Chuming Chen <chen@musc.edu> writes:
> I am using  pg_dumpall (pg_dumpall -o > backup) to backup postgresql 
> 7.2.3 datatbase on Redhat Linux 8. It worked well, but recently, it 
> failed and gave me the following messages:

> pg_dump: query to get data of sequence "est_att_p_por_id_seq" returned 
> name "est_att_p_porites_id_seq"
> pg_dumap failed on xxxxx, exiting

> Can anybody tell me what might go wrong here?

You renamed the sequence.  pg_dump back then had a (misguided) consistency
check that would barf on renamed sequences.  If you don't mind hacking
the source code, it's a simple deletion of a few lines to take it out.

7.2.3 is pretty nearly ancient history; I'd suggest an update.

			regards, tom lane



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


end of thread, other threads:[~2004-09-20 14:40 UTC | newest]

Thread overview: 8+ 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>
2004-09-20 12:31 pg_dumpall failed Chuming Chen <chen@musc.edu>
2004-09-20 14:40 ` Tom Lane <tgl@sss.pgh.pa.us>

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