pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: codeWarrior <gpatnude@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: Urgent!
Date: Thu, 13 Oct 2005 08:30:54 -0700
Message-ID: <dilui9$uv9$1@news.hub.org> (raw)
References: <221385EC3F18A44DB0925467A1D2395F38FB07@exsrv3.workskillsprofessionals.com.au>

Lookas as if you've managed to turn off your computer mid-transaction 
thereby corrupting the postgreSQL commit logs (pg_clog)...

You should never just turn off a database server... always shut it down 
normally... Turning it off was a major mistake. I dont know if you can 
recover or not as the system (postgreSQL) now thinks it is in the middle of 
a transaction...

As far as recovery goes... You might try a vacuum full and pg_resetxlog 
(search the postgreSQL docs for pg_resetxlog)... Other than that you might 
need to get Tom Lane's attention on this one...



""Nirav Parikh"" <nirav.p@workskillsprofessionals.com.au> wrote in message 
news:221385EC3F18A44DB0925467A1D2395F38FB07@exsrv3.workskillsprofessionals.com.au...
Hi,

I got this error message when I tried to do pg_dump on the database.

pg_dump: ERROR:  invalid memory alloc request size 4294967293
pg_dump: SQL command to dump the contents of table "wordlist" failed: 
PQendcopy() failed.
pg_dump: Error message from server: ERROR:  invalid memory alloc request 
size 4294967293
pg_dump: The command was: COPY public.wordlist (word_id, word, count_word) 
TO stdout;

I went to phppgadmin and try to access the worldlist table and it also gives 
me following error message:

ERROR:  could not access status of transaction 6849340
DETAIL:  could not open file "/var/lib/pgsql/data/pg_clog/0006": No such 
file or directory

In statement:
SELECT COUNT(*) AS total FROM (SELECT "oid", * FROM "public"."wordlist") AS 
sub

 CPU was heating up so I turn off the computer and to fix the problem and 
after that this occour. I don't know if this has anything to with database 
corruption.

This is production server and I don't have latest backup does anyone how to 
resolve this.

Please Help

Regards,

Nirav Parikh 





view thread (11+ messages)  latest in thread

Message-ID: <dilui9$uv9$1@news.hub.org>
Permalink:  ../dilui9$uv9$1@news.hub.org/
Also on:    postgresql.org/message-id/dilui9$uv9$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: gpatnude@hotmail.com
  Subject: Re: Urgent!
  In-Reply-To: <dilui9$uv9$1@news.hub.org>
  References: <221385EC3F18A44DB0925467A1D2395F38FB07@exsrv3.workskillsprofessionals.com.au> <dilui9$uv9$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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