473,915 Members | 7,703 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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**@mediariffi c.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 5492
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**@mediariffi c.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/AKDBi7WsFUL3Miy eptvqW2B09e66Qg CfanB7
4t6sRp1EdygSieJ 0B3nOvyA=
=32eB
-----END PGP SIGNATURE-----

Nov 12 '05 #2
Adam Haberlach <ad**@newsnippl e.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 YourEmailAddres sHere" to ma*******@postg resql.org)

Nov 12 '05 #3

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

Similar topics

3
3765
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 on just my large table I decided to run it on my entire database. When I issued the database wide analyze I got an error: data=# analyze; ERROR: could not access status of transaction 739760128 DETAIL: open of file...
1
2253
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 "/usr/local/pgsql/data/pg_clog/0FFB": No such file or directory This error will be repeated every time the vacuum is run. We have some suspicions about the RAID controller in the server, but at the moment I'm wondering how to get around this error and...
17
8516
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 configured 24 checkpoint segments, which I expect gives me a worst-case usage in pg_xlog of 384MB. Unfortunately, during the CREATE INDEX, pg_xlog becomes full!
0
456
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 pg_xlog/000000000000000
2
2983
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 device on which the mountpoint pg_xlog was located got broken. LOG: could not open file
6
2697
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 connection unexpectedlyThis probably means the server terminated abnormally before or while processing the request. I lost some data and had to recreate a table, without knowing the reason
3
9021
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 figure out why the server wouldn't start, I cleaned out pg_clog and pg_xlog, in an obviously vain attempt to reset things. I was under the impression that the server could start without those files. Now I seem to be stuck. So now what?
1
3644
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 2004: ERROR: could not access status of transaction 941262 Thu Sep 23 10:10:01 2004: DETAIL: could not open file "/nw/data/pgdata/pg_clog/0000": No such file or directory
1
5975
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 DETAIL: could not open file "/usr/local/pgsql/data/pg_clog/0089": No such file or directory Looking in /usr/local/pgsql/data/pg_clog, the "0089" file isn't there. Some investigation revealed these messages:
0
10039
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9883
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
11069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10543
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9734
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4779
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4346
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3370
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.