473,387 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

pg_clog / pg_xlog corruption?

We had one of our databases suddenly try to reference a pg_clog
file that didn't exist whenever we attempted to select from a certain
table. Anyone know of a way to recover from this? Is there a way to
reset the transaction logs and just use whatever data is actually
stored in the system?

--
Adam Haberlach | "We spent the 90's all trying to figure out
ad**@mediariffic.com | how to get email and the 00's trying to
http://mediariffic.com | figure out how to not get email."
| -- Joe Gross

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

Nov 12 '05 #1
2 5451
You can create the missing clog file as a file 256K big full of zeros. Then
dump, initdb and restore.

And upgrade the db to the latest minor version.

On Tue, Oct 21, 2003 at 04:49:26PM -0700, Adam Haberlach wrote:
We had one of our databases suddenly try to reference a pg_clog
file that didn't exist whenever we attempted to select from a certain
table. Anyone know of a way to recover from this? Is there a way to
reset the transaction logs and just use whatever data is actually
stored in the system?

--
Adam Haberlach | "We spent the 90's all trying to figure out
ad**@mediariffic.com | how to get email and the 00's trying to
http://mediariffic.com | figure out how to not get email."
| -- Joe Gross

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings
--
Martijn van Oosterhout <kl*****@svana.org> http://svana.org/kleptog/ "All that is needed for the forces of evil to triumph is for enough good
men to do nothing." - Edmond Burke
"The penalty good people pay for not being interested in politics is to be
governed by people worse than themselves." - Plato


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/lei/Y5Twig3Ge+YRAgD/AKDBi7WsFUL3MiyeptvqW2B09e66QgCfanB7
4t6sRp1EdygSieJ0B3nOvyA=
=32eB
-----END PGP SIGNATURE-----

Nov 12 '05 #2
Adam Haberlach <ad**@newsnipple.com> writes:
We had one of our databases suddenly try to reference a pg_clog
file that didn't exist whenever we attempted to select from a certain
table. Anyone know of a way to recover from this?


You need to provide more details. For one, exactly which PG version
are you using? And is the complained-of clog file newer or later than
the range of files actually present in $PGDATA/pg_clog?

regards, tom lane

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

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Adam Kavan | last post by:
I am running postgres 7.4Beta1 and have found a problem, I'm not sure if its a bug or something I did wrong. I ran ANALYZE on a large table while the database was receiving data, after running it...
1
by: A Palmblad | last post by:
After trying a vacuum of a table, the following error has been occurring: aers=# vacuum XXXXXX; ERROR: could not access status of transaction 4290052110 DETAIL: could not open file...
17
by: Jeffrey W. Baker | last post by:
Greetings, I have a 23GB data table upon which I am building a primary key of three columns. The data is mounted in a 137GB device and pg_xlog is mounted on a separate 3.5GB device. I have...
0
by: zhicheng wang | last post by:
can any one tell me about the meaning of pg_xlog/0000000000000F1 pg_xlog/0000000000000F2 pg_xlog/0000000000000F3 pg_xlog/0000000000000F4 ... pg_xlog/0000000000000F8 is the...
2
by: Dennis Breithaupt | last post by:
Hy all, I request your support for the following problem. (with "postmaster (PostgreSQL) 7.4.1") On a development-system I lost the pg_xlog-directory due to a system crash, where the physical...
6
by: ruben | last post by:
Hi: I'm running a large database on PostgreSQL 7.1.3. 20 days ago the database failed with a threatening and not too descriptive error like: pg_exec() query failed: server closed the...
3
by: Glen Parker | last post by:
First things first: Postgresql 8.4.2 on Fedora Core 2 X86. Something seems to have happened to my pg_xlog and pg_clog directories after (I believe) a power outage. In the course of trying to...
1
by: Amin Abdulghani | last post by:
Hi, We about a week ago installed a clean version of postgres 7.4.5 for testing purposes. For the last couple of days for any transaction it has been complaining about: Thu Sep 23 09:36:24...
1
by: Steve Wolfe | last post by:
On Saturday, our database machine locked up hard on us due to some faulty hardware. Since then, we have been getting messages like this: ERROR: could not access status of transaction 143934068...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.