473,788 Members | 2,754 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Invalid page header in block

Hello:

I encounter a problem in which I have inserted about 1.6 million record to a
database table (using postgresql 7.3.4), when I vacuum or select * from the
table, it gets error message: Invalid page header in block 314345 of table.
At first, I think it is my hard-disk problem, so I install another new
machine (with the same config) and try again. But my new machine gets the
same error when I insert more than 1.6 million to the database table.

My machine running the postgresql is installed with Red Hat 7.3, it has a
IDE and SCSI hard disk. The data directory (PGDATA) is placed in the SCSI
hard disk. When I installed the OS, it has already checked the bad block, so
I don't think the error is caused by the bad block in my hard disk!

Does any one know to solve this problem?

Thanks a lot!
Carmen

_______________ _______________ _______________ _______________ _____
Linguaphone : Learning English? Get Japanese lessons for FREE
http://go.msnserver.com/HK/30476.asp
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 12 '05 #1
2 3913
"Carmen Wai" <wa********@hot mail.com> writes:
I encounter a problem in which I have inserted about 1.6 million record to a
database table (using postgresql 7.3.4), when I vacuum or select * from the
table, it gets error message: Invalid page header in block 314345 of table.
At first, I think it is my hard-disk problem, so I install another new
machine (with the same config) and try again. But my new machine gets the
same error when I insert more than 1.6 million to the database table.


Oh? Could we see the contents of that block as dumped with pg_filedump?
(You can get it from http://sources.redhat.com/rhdb/tools.html)

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 12 '05 #2
Hello,

I also ran into this with 7.3.4. We had to reindex the database. It
recovered all but
two blocks. Once we figured out where those blocks were, we were able to
delete the
bad rows, dump the table, drop the table, restore the table.

We only lost those two rows and haven't had the problem since.
Sincerely,

Joshua D. Drake
Tom Lane wrote:
"Carmen Wai" <wa********@hot mail.com> writes:

I encounter a problem in which I have inserted about 1.6 million record to a
database table (using postgresql 7.3.4), when I vacuum or select * from the
table, it gets error message: Invalid page header in block 314345 of table.
At first, I think it is my hard-disk problem, so I install another new
machine (with the same config) and try again. But my new machine gets the
same error when I insert more than 1.6 million to the database table.


Oh? Could we see the contents of that block as dumped with pg_filedump?
(You can get it from http://sources.redhat.com/rhdb/tools.html)

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd@commandpromp t.com - http://www.commandprompt.com
Mammoth PostgreSQL Replicator. Integrated Replication for PostgreSQL

---------------------------(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

0
472
by: CSN | last post by:
There are a bunch of these in PG's log: ERROR: Invalid page header in block 14 of start_items_key What does it mean? PG seems to be working fine - anything I need to fix/adjust/worry about? TIA, CSN
1
2036
by: Carmen Wai | last post by:
Hello: I am a new user of postgresql. I am using postgresql 7.3.4 and I had inserted about 1.7 million records to a table. When I vacuum / select * from table, it gets a error message of : Invalid page header in block xxx of TableA. I check that I still can insert records to the table. But I am not able to get part of the data (as I try to copy all records to text file, only around 1.6 million records are copied.) How can I recovery...
5
3437
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS 5), but fails on IIS 6 running on a Win2003 server. The web uses Pages derived from a custom class I wrote (which itself derives from Page) to provide some common functionality. The Page_Load handler the failing webpage starts out like this: ...
0
1365
by: Konstantinos Agouros | last post by:
Hi, I have a machine that is currently a bit unstable. No I got a: sysad=# select * from attacks where start < '1.1.2000'; ERROR: Invalid page header in block 3618 of attacks From googeling I saw that this should be solvable if I can delete the bad rows or find the bad datafile. Anybody has a tip on how to do that? Because I could not find the how in detail.
2
11585
by: Anthony | last post by:
Our Database is having errors. We are currently using PostgreSQL to store 2.5 Million records per day. The average addition to our primary table is 4.5 Gigs of data. We are doing this on a dual Opteron 244 system with 1 TeraByte of HDD space. The drives are 250 Gig Western Digital. The Raid Controller is LSI Logic MegaRaid 150-6. We are getting an error after about 4-5 days worth of data being put into the system.
0
1443
by: Hubert Fröhlich | last post by:
Hi list, I am working with 7.4.1 under Linux (SuSE 8.1) The server is a HP ProLiant DL 380-G3, 2x Intel Pentium4-Xeon, 2.8 GHz, 4 GB memory and a RAID 5 system with ca. 500 GB diskspace (xfs file system) When doing big transactions or changes (UPDATE several million rows in one step) on a database with ca. 50 GB diskspace and ca 15 million entries, PostGIS and lots of indexes, I get errors like
5
4167
by: Ed L. | last post by:
I have 5 corrupted page headers as evidenced by these errors: ERROR: Invalid page header in block 13947 of ... The corruption is causing numerous queries to abort. First option is to try to salvage data before attempt restore from backup. I want to try to edit the file to zero out the bogus headers. I realize there may be data lost from this attempt. I have scalpel (binary editor) in hand. Which bytes should I edit, and what do...
5
8278
by: Steve Crawford | last post by:
This morning I got bitten by the "SELECT INTO" / "CREATE TABLE AS" from tables without OIDs bug in 7.4.1. Postmaster killed all the backends and restarted - pg was down for 2 seconds. This happened two times within a few minute period. Now I am getting 'invalid page header in block 52979 of relation "pg_attribute"' errors in the postgresql log file. I cannot reindex
16
8376
by: matt | last post by:
hello, ive been trying to figure something out, largely thru trial & error. thought perhaps someone else may have knowledge. i have an html table that consists of blocks of related data -- each block contains three rows. this table is destined for paper printing. i would like to tell the browser *not* to bust up my blocks. rather, i would like it to smartly insert a page break inbetween <tbody>s if the last one cannot be rendered...
0
9656
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
9498
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,...
0
10175
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8993
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...
1
7518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4070
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
3675
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
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.