pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_dump fails with the following error: "ERROR: cache lookup failed for index 1531353157"
4+ messages / 3 participants
[nested] [flat]

* pg_dump fails with the following error: "ERROR: cache lookup failed for index 1531353157"
@ 2010-09-21 20:32  Benjamin Arai, Ph.D. <benjamin@araisoft.com>
  0 siblings, 2 replies; 4+ messages in thread

From: Benjamin Arai, Ph.D. @ 2010-09-21 20:32 UTC (permalink / raw)
  To: pgsql-admin

Hello,

The server is still running but pg_dumps output the following error. What
should I do?

Thanks,
Benjamin

OUTPUT:

pg_dump: SQL command failed
pg_dump: Error message from server: ERROR:  cache lookup failed for index
1531353157
pg_dump: The command was: SELECT t.tableoid, t.oid, t.relname as indexname,
pg_catalog.pg_get_indexdef(i.indexrelid) as indexdef, t.relnatts as
indnkeys, i.indkey, i.indisclustered, c.contype, c.conname, c.tableoid as
contableoid, c.oid as conoid, (SELECT spcname FROM pg_catalog.pg_tablespace
s WHERE s.oid = t.reltablespace) as tablespace FROM pg_catalog.pg_index i
JOIN pg_catalog.pg_class t ON (t.oid = i.indexrelid) LEFT JOIN
pg_catalog.pg_depend d ON (d.classid = t.tableoid AND d.objid = t.oid AND
d.deptype = 'i') LEFT JOIN pg_catalog.pg_constraint c ON (d.refclassid =
c.tableoid AND d.refobjid = c.oid) WHERE i.indrelid =
'1531340182'::pg_catalog.oid ORDER BY indexname

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

* Re: pg_dump fails with the following error: "ERROR: cache lookup failed for index 1531353157"
@ 2010-09-21 20:57  Joshua D. Drake <jd@commandprompt.com>
  parent: Benjamin Arai, Ph.D. <benjamin@araisoft.com>
  1 sibling, 1 reply; 4+ messages in thread

From: Joshua D. Drake @ 2010-09-21 20:57 UTC (permalink / raw)
  To: Benjamin Arai, Ph.D. <benjamin@araisoft.com>; +Cc: pgsql-admin

On Tue, 2010-09-21 at 13:32 -0700, Benjamin Arai, Ph.D. wrote:
> Hello, 
>  
> The server is still running but pg_dumps output the following error.
> What should I do?

Try reindexing the index.

Joshua D. Drake

-- 
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579
Consulting, Training, Support, Custom Development, Engineering
http://twitter.com/cmdpromptinc | http://identi.ca/commandprompt




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

* Re: pg_dump fails with the following error: "ERROR: cache lookup failed for index 1531353157"
@ 2010-09-21 21:06  Benjamin Arai, Ph.D. <benjamin@araisoft.com>
  parent: Joshua D. Drake <jd@commandprompt.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Benjamin Arai, Ph.D. @ 2010-09-21 21:06 UTC (permalink / raw)
  To: jd@commandprompt.com; +Cc: pgsql-admin

Is the index 1531353157? To be clear, I would just run:

REINDEX INDEX 1531353157

Thanks,
Benjamin

On Tue, Sep 21, 2010 at 1:57 PM, Joshua D. Drake <jd@commandprompt.com>wrote:

> On Tue, 2010-09-21 at 13:32 -0700, Benjamin Arai, Ph.D. wrote:
> > Hello,
> >
> > The server is still running but pg_dumps output the following error.
> > What should I do?
>
> Try reindexing the index.
>
> Joshua D. Drake
>
> --
> PostgreSQL.org Major Contributor
> Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579
> Consulting, Training, Support, Custom Development, Engineering
> http://twitter.com/cmdpromptinc | http://identi.ca/commandprompt
>
>

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

* Re: pg_dump fails with the following error: "ERROR: cache lookup failed for index 1531353157"
@ 2010-09-21 21:30  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Benjamin Arai, Ph.D. <benjamin@araisoft.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Tom Lane @ 2010-09-21 21:30 UTC (permalink / raw)
  To: Benjamin Arai, Ph.D. <benjamin@araisoft.com>; +Cc: pgsql-admin

"Benjamin Arai, Ph.D." <benjamin@araisoft.com> writes:
> The server is still running but pg_dumps output the following error. What
> should I do?

Try reindexing pg_index in whichever database is giving trouble.

Depending on what PG version you are using (which is something that
should ALWAYS be mentioned in any kind of trouble report), you might
need to stop the server so you can do this in a standalone backend.
Read the relevant version of the REINDEX reference page for more info.

			regards, tom lane



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


end of thread, other threads:[~2010-09-21 21:30 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-09-21 20:32 pg_dump fails with the following error: "ERROR: cache lookup failed for index 1531353157" Benjamin Arai, Ph.D. <benjamin@araisoft.com>
2010-09-21 20:57 ` Joshua D. Drake <jd@commandprompt.com>
2010-09-21 21:06   ` Benjamin Arai, Ph.D. <benjamin@araisoft.com>
2010-09-21 21:30 ` 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