Unix Technical Forum

help with corrupted database

This is a discussion on help with corrupted database within the pgsql Hackers forums, part of the PostgreSQL category; --> Hello. A memory fault in a trigger left my database in a corrupted state: - A temporary table listed ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 04:11 AM
strk
 
Posts: n/a
Default help with corrupted database

Hello.
A memory fault in a trigger left my database
in a corrupted state:

- A temporary table listed in pg_class
was not accessible with a select

- I could not DROP it

- I deleted the record from pg_class

- I can't create temporary tables anymore
(restart/vacuum full don't help)
ERROR: cache lookup failed for relation 1250714

Any hint?

--strk;

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 04:11 AM
Richard Huxton
 
Posts: n/a
Default Re: help with corrupted database

strk wrote:
> Hello.
> A memory fault in a trigger left my database
> in a corrupted state:
>


> - I can't create temporary tables anymore
> (restart/vacuum full don't help)
> ERROR: cache lookup failed for relation 1250714


*What* is giving this error? Something seems to be holding onto a
reference to (at a guess) your temporary table. Can you identify what?

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 04:11 AM
strk
 
Posts: n/a
Default Re: help with corrupted database

On Wed, Mar 23, 2005 at 01:48:11PM +0000, Richard Huxton wrote:
> strk wrote:
> >Hello.
> >A memory fault in a trigger left my database
> >in a corrupted state:
> >

>
> > - I can't create temporary tables anymore
> > (restart/vacuum full don't help)
> > ERROR: cache lookup failed for relation 1250714

>
> *What* is giving this error? Something seems to be holding onto a
> reference to (at a guess) your temporary table. Can you identify what?


Whatever is called from create temp table ..

strk=# create temp table test1(a int);
ERROR: cache lookup failed for relation 1250714
strk=# create temp table test2(a int);
ERROR: cache lookup failed for relation 1250714

PostgreSQL 8.0.0 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.4 (Debian)

--strk;

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-11-2008, 04:11 AM
Richard Huxton
 
Posts: n/a
Default Re: help with corrupted database

strk wrote:
> On Wed, Mar 23, 2005 at 01:48:11PM +0000, Richard Huxton wrote:
>
>>strk wrote:
>>
>>>Hello.
>>>A memory fault in a trigger left my database
>>>in a corrupted state:
>>>

>>
>>> - I can't create temporary tables anymore
>>> (restart/vacuum full don't help)
>>> ERROR: cache lookup failed for relation 1250714

>>
>>*What* is giving this error? Something seems to be holding onto a
>>reference to (at a guess) your temporary table. Can you identify what?

>
>
> Whatever is called from create temp table ..
>
> strk=# create temp table test1(a int);
> ERROR: cache lookup failed for relation 1250714
> strk=# create temp table test2(a int);
> ERROR: cache lookup failed for relation 1250714


Have you disconnected/reconnected since deleting the temp table?

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-11-2008, 04:11 AM
strk
 
Posts: n/a
Default Re: help with corrupted database

On Wed, Mar 23, 2005 at 02:49:53PM +0000, Richard Huxton wrote:
> strk wrote:
> >On Wed, Mar 23, 2005 at 01:48:11PM +0000, Richard Huxton wrote:
> >
> >>strk wrote:
> >>
> >>>Hello.
> >>>A memory fault in a trigger left my database
> >>>in a corrupted state:
> >>>
> >>
> >>> - I can't create temporary tables anymore
> >>> (restart/vacuum full don't help)
> >>> ERROR: cache lookup failed for relation 1250714
> >>
> >>*What* is giving this error? Something seems to be holding onto a
> >>reference to (at a guess) your temporary table. Can you identify what?

> >
> >
> >Whatever is called from create temp table ..
> >
> >strk=# create temp table test1(a int);
> >ERROR: cache lookup failed for relation 1250714
> >strk=# create temp table test2(a int);
> >ERROR: cache lookup failed for relation 1250714

>
> Have you disconnected/reconnected since deleting the temp table?


Yes. And vacuum full'd. And pg_ctl stop/start.
--strk;

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-11-2008, 04:11 AM
Tom Lane
 
Posts: n/a
Default Re: help with corrupted database

strk <strk@keybit.net> writes:
> On Wed, Mar 23, 2005 at 01:48:11PM +0000, Richard Huxton wrote:
>> *What* is giving this error? Something seems to be holding onto a
>> reference to (at a guess) your temporary table. Can you identify what?


> Whatever is called from create temp table ..


"\set VERBOSITY verbose" might help.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:55 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com