Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Bugs > Re: postmaster ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 7 Topic 3740 of 4088
Post > Topic >>

Re: postmaster segfault when using SELECT on a table

by tgl@[EMAIL PROTECTED] (Tom Lane) Apr 26, 2008 at 03:29 PM

Karsten Desler <kd@[EMAIL PROTECTED]
> writes:
> I don't know much about the postgres architecture and I don't know if
bounds
> checking on-disk values on a read makes a lot of sense since usually one
> should be able to assume that there are no randomly flipped bits; but it
> would've been nice to have a sensible log entry as to what really
> happened.

FWIW, there is code in CVS HEAD that detects simple cases of corrupt
compressed data, though it's anyone's guess if it would've caught your
example here.

> Anyway, for future reference: Assuming that this is the only corruption,
> can I just UPDATE (or DELETE and reINSERT) the offending entry (maybe
with a
> following REINDEX/VACUUM?) or do I need to restore a backup?

If only the one row is clobbered, you should be able to just delete and
re-insert it, assuming you can identify it in a way that doesn't crash
in itself (ctid is probably about the safest).  Not sure if an UPDATE
would be safe.

My suspicion though is that you'll find that a large ****tion of that
page is damaged; that's usually what we've seen in such cases in the
past.

			regards, tom lane

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
 




 7 Posts in Topic:
postmaster segfault when using SELECT on a table
kd@[EMAIL PROTECTED] (Ka  2008-04-26 12:39:06 
Re: postmaster segfault when using SELECT on a table
tgl@[EMAIL PROTECTED] (T  2008-04-26 13:24:56 
Re: postmaster segfault when using SELECT on a table
tgl@[EMAIL PROTECTED] (T  2008-04-26 15:29:32 
Re: postmaster segfault when using SELECT on a table
kd@[EMAIL PROTECTED] (Ka  2008-04-26 20:20:03 
Re: postmaster segfault when using SELECT on a table
Zdenek.Kotala@[EMAIL PROT  2008-04-28 13:24:58 
Re: postmaster segfault when using SELECT on a table
kd@[EMAIL PROTECTED] (Ka  2008-04-29 13:51:40 
Re: postmaster segfault when using SELECT on a table
Zdenek.Kotala@[EMAIL PROT  2008-04-28 13:31:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 21:28:37 CDT 2008.