pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Re: PostgreSQL; Strange error 5+ messages / 3 participants [nested] [flat]
* Re: PostgreSQL; Strange error @ 2001-03-20 17:19 J.H.M. Dassen (Ray) <jdassen@cistron.nl> 0 siblings, 1 reply; 5+ messages in thread From: jdassen@cistron.nl @ 2001-03-20 17:19 UTC (permalink / raw) To: pgsql-admin Bengt Månsson <name@some.site> wrote: >I use RH7, Apache, PHP4 and PostgreSQL Your problem is a RDBMS problem, not a WWW server one. The PostgreSQL mailing lists (see http://www.postgresql.org/users-lounge/index.html) are a better place to ask. >Warning: PostgreSQL query failed: FATAL 1: my bits moved right off the end >of the world! Recreate index pg_attribute_relid_attnum_index. >I don't understand any of this. Never heard of that index. It starts with "pg_", so it's Postgres' meta-data (internal administration). >What does it mean? Apparently one of Postgres' internal indexes got corrupted. > What can I do? Follow the suggestion given in the warning: recreate index pg_attribute_relid_attnum_index, presumably [*] using something like DROP INDEX pg_attribute_relid_attnum_index; CREATE UNIQUE INDEX pg_attribute_relid_attnum_index ON pg_attribute(attrelid,attnum); (as database user 'postgres'). HTH, Ray [*] I'm just guessing from '\d pg_attribute_relid_attnum_index' and '\d pg_attribute' - back up your database (using "pg_dump") before trying this. -- Think of computer security like powertools. The day you think you are totally safe is the day you end up hurt. Alan Cox ^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Re: PostgreSQL; Strange error @ 2001-03-20 17:52 Tom Lane <tgl@sss.pgh.pa.us> parent: J.H.M. Dassen (Ray) <jdassen@cistron.nl> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2001-03-20 17:52 UTC (permalink / raw) To: jdassen@cistron.nl; +Cc: pgsql-admin jdassen@cistron.nl (J.H.M. Dassen (Ray)) writes: > Bengt Månsson <name@some.site> wrote: >> Warning: PostgreSQL query failed: FATAL 1: my bits moved right off the end >> of the world! Recreate index pg_attribute_relid_attnum_index. This is an internal "can't happen" failure condition, presumably arising from some weird corner-case bug in btree index manipulation. We have seen sporadic reports of this failure, mostly from people using lots of large objects, but no one has yet provided a test case that allows the problem to be reproduced from scratch. When I'm in an optimistic mood I think that the bug might be fixed in 7.1, but it's hard to say for sure because I've never seen this failure happen myself. > Follow the suggestion given in the warning: recreate index > pg_attribute_relid_attnum_index, presumably [*] using something like > DROP INDEX pg_attribute_relid_attnum_index; > CREATE UNIQUE INDEX pg_attribute_relid_attnum_index ON > pg_attribute(attrelid,attnum); I think that will probably crash and burn :-(. To reconstruct a broken system index you need to use the REINDEX command. See the manual for the proper procedure for using REINDEX on system indexes; it's a tad arcane. regards, tom lane ^ permalink raw reply [nested|flat] 5+ messages in thread
* RE: Re: PostgreSQL; Strange error @ 2001-03-20 18:18 Mikheev, Vadim <vmikheev@SECTORBASE.COM> 0 siblings, 1 reply; 5+ messages in thread From: Mikheev, Vadim @ 2001-03-20 18:18 UTC (permalink / raw) To: 'Tom Lane' <tgl@sss.pgh.pa.us>; jdassen@cistron.nl; +Cc: pgsql-admin > >> Warning: PostgreSQL query failed: FATAL 1: my bits moved > >> right off the end of the world! Recreate index > >> pg_attribute_relid_attnum_index. > > This is an internal "can't happen" failure condition, > presumably arising from some weird corner-case bug in btree > index manipulation. We have seen sporadic reports of this > failure, mostly from people using lots of large objects, > but no one has yet provided a test case that allows > the problem to be reproduced from scratch. When I'm in an Just use gdb to prevent parent btree page update after split and you'll get that error next time when splitting new, unpointed from parent, right sibling. In real life you have !0 probability to get same case without gdb just by pg_ctl -m fast stop, not to mention pg_ctl -m immediate stop, power off and OS' crash. > optimistic mood I think that the bug might be fixed in 7.1, > but it's hard to say for sure because I've never seen this > failure happen myself. Just add elog(ERROR) after split to see this. This is what I made to test new btree runtime recovery code in 7.1. Vadim ^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Re: PostgreSQL; Strange error @ 2001-03-20 18:31 Tom Lane <tgl@sss.pgh.pa.us> parent: Mikheev, Vadim <vmikheev@SECTORBASE.COM> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2001-03-20 18:31 UTC (permalink / raw) To: Mikheev, Vadim <vmikheev@SECTORBASE.COM>; +Cc: jdassen@cistron.nl; pgsql-admin "Mikheev, Vadim" <vmikheev@SECTORBASE.COM> writes: >> Warning: PostgreSQL query failed: FATAL 1: my bits moved >> right off the end of the world! Recreate index >> pg_attribute_relid_attnum_index. > Just use gdb to prevent parent btree page update after > split and you'll get that error next time when splitting > new, unpointed from parent, right sibling. Hmm ... so you think the people who have complained of this are all working with databases that have suffered previous crash corruption? I doubt it. There's too much consistency to the reports: in particular, it's generally triggered by creation of lots of large objects, and it's always the indexes on pg_attribute, never any other table (even though large object creation inserts into several system tables). I don't see how the unfinished-split hypothesis explains that. My thought was that it is somehow related to the many-equal-keys issues that we had in 7.0.* and before, and/or the poor behavior for purely sequential key insertion that we still have. But without a test case it's hard to be sure. regards, tom lane ^ permalink raw reply [nested|flat] 5+ messages in thread
* RE: Re: PostgreSQL; Strange error @ 2001-03-20 18:59 Mikheev, Vadim <vmikheev@SECTORBASE.COM> 0 siblings, 0 replies; 5+ messages in thread From: Mikheev, Vadim @ 2001-03-20 18:59 UTC (permalink / raw) To: 'Tom Lane' <tgl@sss.pgh.pa.us>; +Cc: jdassen@cistron.nl, pgsql-admin@postgresql.org, "'pgsql-hackers@postgresql.org'" <pgsql-hackers@postgresql.org> > Hmm ... so you think the people who have complained of this are all > working with databases that have suffered previous crash corruption? > I doubt it. There's too much consistency to the reports: in > particular, it's generally triggered by creation of lots of large > objects, and it's always the indexes on pg_attribute, > never any other table (even though large object creation inserts into > several system tables). I don't see how the unfinished-split hypothesis > explains that. I saw this error after PG' crashes and power off in my employer' project where large objects were not used. As for pg_attributes - PG inserts into this table more rows than into others => more splits => higher probability of unfinished split in the event of crash. > My thought was that it is somehow related to the many-equal-keys issues > that we had in 7.0.* and before, and/or the poor behavior for purely pg_attribute_relid_attnum_index is unique index, so I doubt that "many-equal-keys issue" is related to subj. > sequential key insertion that we still have. But without a test case > it's hard to be sure. This is hypothesis and we don't know how to test it. But unfinished splits is not hypothesis. It's *obviously* may cause "my bits moved right off the end of the world" error and we can test this very easy. Vadim ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2001-03-20 18:59 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2001-03-20 17:19 Re: PostgreSQL; Strange error J.H.M. Dassen (Ray) <jdassen@cistron.nl> 2001-03-20 17:52 ` Tom Lane <tgl@sss.pgh.pa.us> 2001-03-20 18:18 RE: Re: PostgreSQL; Strange error Mikheev, Vadim <vmikheev@SECTORBASE.COM> 2001-03-20 18:31 ` Tom Lane <tgl@sss.pgh.pa.us> 2001-03-20 18:59 RE: Re: PostgreSQL; Strange error Mikheev, Vadim <vmikheev@SECTORBASE.COM>
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