473,548 Members | 2,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vacuum full failing in 7.3

Hi, everybody!

I am getting a weird failure, trying to vacuum a table in 7.3 - it says
"ERROR: Index pg_toast_89407_ index is not a btree".
Does it ring a bell to anyone? Any ideas what's wrong? Is it my database
screwed up? I just created it today...
I tried dropping and recreating it... and it seems to be working now.
But still, if it all possible, I would appreciate any ideas as to what
it could be that caused this problem in the first place...

Thanks a lot!

Dima

P.S.

For what it's worth, here is the stack to the place in the code where
the badness happens:
#0 elog (lev=20, fmt=0x81b5f9b "Index %s is not a btree") at elog.c:114
#1 0x0807e18a in _bt_getroot (rel=0x60eba740 , access=1) at nbtpage.c:127
#2 0x08080dce in _bt_endpoint (scan=0x82a7830 , dir=ForwardScan Direction)
at nbtsearch.c:932
#3 0x08080ad8 in _bt_first (scan=0x82a7830 , dir=ForwardScan Direction)
at nbtsearch.c:686
#4 0x0807ef3d in btbulkdelete (fcinfo=0xbfffd 240) at nbtree.c:627
#5 0x08163aa3 in OidFunctionCall 3 (functionId=332 , arg1=1626056512 ,
arg2=135047316, arg3=0) at fmgr.c:1275
#6 0x0807b470 in index_bulk_dele te (indexRelation= 0x60eba740,
callback=0x80ca 894 <dummy_tid_reap ed>, callback_state= 0x0) at
indexam.c:579
#7 0x080ca65c in scan_index (indrel=0x60eba 740, num_tuples=0) at
vacuum.c:2612
#8 0x080c7f8b in full_vacuum_rel (onerel=0x60ebd fa0, vacstmt=0x82a07 68)
at vacuum.c:948
#9 0x080c7e24 in vacuum_rel (relid=89410, vacstmt=0x82a07 68,
expected_relkin d=116 't') at vacuum.c:827
#10 0x080c7e65 in vacuum_rel (relid=89407, vacstmt=0x82a07 68,
expected_relkin d=114 'r') at vacuum.c:850
#11 0x080c7765 in vacuum (vacstmt=0x82a0 768) at vacuum.c:290
#12 0x081198da in pg_exec_query_s tring (query_string=0 x82a0538,
dest=Remote,
parse_context=0 x8294e30) at postgres.c:789
#13 0x0811a9f1 in PostgresMain (argc=4, argv=0xbfffd770 ,
username=0x8258 849 "postgres") at postgres.c:2013

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

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

Nov 12 '05 #1
1 1564
Dmitry Tkach <dm****@openrat ings.com> writes:
I am getting a weird failure, trying to vacuum a table in 7.3 - it says
"ERROR: Index pg_toast_89407_ index is not a btree".
That says the first page of the index was corrupted (version number
field didn't contain the right thing).
Does it ring a bell to anyone? Any ideas what's wrong? Is it my database
screwed up? I just created it today...
I tried dropping and recreating it... and it seems to be working now.


Sounds like you just destroyed all the evidence :-(. I'd wonder about
hardware flakiness for one thing ...

regards, tom lane

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

Nov 12 '05 #2

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

Similar topics

8
4557
by: Sean Shanny | last post by:
To all, The facts: PostgreSQL 7.4.0 running on BSD 5.1 on Dell 2650 with 4GB RAM, 5 SCSI drives in hardware RAID 0 configuration. Database size with indexes is currently 122GB. DB size before we completed the vacuum full was 150GB. We have recently done a major update to a table, f_pageviews, in our data warehouse. The f_pageviews...
2
6302
by: lnd | last post by:
Any comments on multi-versioning problem: As far as I understand from PG documentation, *CURRENTLY* VACUUM must be run regulary, otherwise: -Q. database will grow as fast as there are many DML going on it, won't it? -Q. transaction ID may wrap - no doubt here. -Q. Good news that VACUUM nowdays can run in parallel with other db activity
6
2607
by: Alex | last post by:
Hi, just a few questions on the Vaccum I run a vacuum analyze on the database every night as part of a maintenance job. During the day I have a job that loads 30-70,000 records into two tables (each 30-70k). This job runs 2-3 times a day; the first time mainly inserts, the 2nd, 3rd time mostly updates.
0
1698
by: Jim Seymour | last post by:
Hi, Environment: PostgreSQL 7.4.2 Locally built with GCC 3.3.1 Solaris 8 (Sparc) I have a relatively simple database created with...
0
1975
by: Rajesh Kumar Mallah | last post by:
Greeting, Will it be an useful feature to be able to vacumm / analyze all tables in a given schema. eg VACUUM schema.* ; at least for me it will be a good feature.
15
2345
by: Ed L. | last post by:
If I see VACUUM ANALYZE VERBOSE output like this... INFO: --Relation public.foo-- INFO: Index idx_foo_bar: Pages 219213; Tuples 28007: Deleted 9434. CPU 17.05s/4.58u sec elapsed 3227.62 sec. ....am I correct in reading this to say that it took more than 53 minutes (3227 secs) to get 17 seconds of CPU time? Is this an indicator of...
6
1798
by: spied | last post by:
look please http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=253295 ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend
4
7906
by: Ilia Chipitsine | last post by:
Dear Sirs I'm about to write plpgsql function which will "vacuum full" all existing databases. Below is an example how to get list of databases. What should I write instead of "raise notice" ? CREATE OR REPLACE FUNCTION vacuum_all() RETURNS integer AS '
9
2735
by: Aleksey Serba | last post by:
Hello! I have 24/7 production server under high load. I need to perform vacuum full on several tables to recover disk space / memory usage frequently ( the server must be online during vacuum time ) The one trick that i see is to try to vacuum duplicate of production database ( or just some tables ). But there are some pitfalls:...
0
7444
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...
1
7467
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...
0
7805
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...
1
5367
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...
0
5085
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...
0
3478
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1932
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
1
1054
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
755
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...

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.