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 Hackers > Re: the un-vacu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 16 Topic 9559 of 11013
Post > Topic >>

Re: the un-vacuumable table

by andrew.george.hammond@[EMAIL PROTECTED] ("Andrew Hammond") Jun 25, 2008 at 09:57 AM

------=_Part_11443_22406958.1214413075187
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Wed, Jun 25, 2008 at 2:58 AM, Heikki Lin****angas
<heikki@[EMAIL PROTECTED]
>
wrote:

> Andrew Hammond wrote:
>
>> I found this error message in my log files repeatedly:
>>
>> Error: failed to re-find parent key in "ledgerdetail_2008_03_idx2" for
>> deletion target page 64767
>>
>> I though "hmm, that index looks broken. I'd better re-create it." So, I
>> dropped the index and then tried to create a new one to replace it.
Which
>> completely locked up the backend that was running the CREATE TABLE. I
ran
>> truss against the backend in question and it didn't register anything
>> (except signals 2 and 15 when I tried to cancel the query and kill the
>> backend respectively). I eventually had to restart the database to get
the
>> CREATE INDEX process to go away (well, to release that big nasty lock).
>>
>
> What kind of an index is it? Does "SELECT COUNT(*) from <table>" work?


After the restart I did a count(*) and it worked. A little under 13m rows.
So, sequential scans seem to work.


> posting here in case there's interest in gathering some forensic data or
a
>> clever suggetion about how I can recover this situation or even some
ideas
>> about what's causing it.
>>
> Anyway, the current plan is to drop the table and reload it from backup.
> I'm
>
> Yes, please take a filesystem-level backup right away to retain the
> evidence.


Well, I've already burned our downtime allowance for this month, but we do
a
regular PITR type backup which hopefully will be sufficient to replicate
the
problem.


> Could you connect to the hung backend with gdb and get a stacktrace?


The backend is no longer hung (two restarts later). I'll try to reproduce
this problem on my workstation (same binary, same OS, libraries etc) using
the PITR dump.

Andrew

------=_Part_11443_22406958.1214413075187
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Wed, Jun 25, 2008 at 2:58 AM, Heikki Lin****angas &lt;<a
href="mailto:heikki@[EMAIL PROTECTED]
">heikki@[EMAIL PROTECTED]
>&gt;
wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt
0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Andrew Hammond wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204,
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I found this error message in my log files repeatedly:<br>
<br>
Error: failed to re-find parent key in
&quot;ledgerdetail_2008_03_idx2&quot; for<br>
deletion target page 64767<br>
<br>
I though &quot;hmm, that index looks broken. I&#39;d better re-create
it.&quot; So, I<br>
dropped the index and then tried to create a new one to replace it.
Which<br>
completely locked up the backend that was running the CREATE TABLE. I
ran<br>
truss against the backend in question and it didn&#39;t register
anything<br>
(except signals 2 and 15 when I tried to cancel the query and kill the<br>
backend respectively). I eventually had to restart the database to get
the<br>
CREATE INDEX process to go away (well, to release that big nasty
lock).<br>
</blockquote>
<br></div>
What kind of an index is it? Does &quot;SELECT COUNT(*) from
&lt;table&gt;&quot; work?</blockquote><div><br>After the restart I did a
count(*) and it worked. A little under 13m rows. So, sequential scans seem
to work.<br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div
class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px
solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

posting here in case there&#39;s interest in gathering some forensic data
or a<br>
clever suggetion about how I can recover this situation or even some
ideas<br>
about what&#39;s causing it.<br>
</blockquote>Anyway, the current plan is to drop the table and reload it
from backup. I&#39;m<br>
<br></div>
Yes, please take a filesystem-level backup right away to retain the
evidence.</blockquote><div><br>Well, I&#39;ve already burned our downtime
allowance for this month, but we do a regular PITR type backup which
hopefully will be sufficient to replicate the problem.<br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Could
you connect to the hung backend with gdb and get a
stacktrace?</blockquote><div>
<br>The backend is no longer hung (two restarts later). I&#39;ll try to
reproduce this problem on my workstation (same binary, same OS, libraries
etc) using the PITR dump.<br><br></div></div>Andrew<br>

------=_Part_11443_22406958.1214413075187--
 




 16 Posts in Topic:
the un-vacuumable table
andrew.george.hammond@[EM  2008-06-25 00:40:35 
Re: the un-vacuumable table
heikki@[EMAIL PROTECTED]   2008-06-25 12:58:04 
Re: the un-vacuumable table
andrew.george.hammond@[EM  2008-06-25 09:57:55 
Re: the un-vacuumable table
andrew.george.hammond@[EM  2008-06-27 16:31:05 
Re: the un-vacuumable table
tgl@[EMAIL PROTECTED] (T  2008-06-27 23:14:36 
Re: the un-vacuumable table
andrew.george.hammond@[EM  2008-06-30 19:20:50 
Re: the un-vacuumable table
andrew.george.hammond@[EM  2008-07-03 13:42:30 
Re: the un-vacuumable table
tgl@[EMAIL PROTECTED] (T  2008-07-03 17:35:23 
Re: the un-vacuumable table
andrew.george.hammond@[EM  2008-07-03 15:16:32 
Re: the un-vacuumable table
tgl@[EMAIL PROTECTED] (T  2008-07-03 18:47:51 
Re: the un-vacuumable table
andrew.george.hammond@[EM  2008-07-03 22:57:36 
Re: the un-vacuumable table
stark@[EMAIL PROTECTED]   2008-07-04 09:20:59 
Re: the un-vacuumable table
andrew.george.hammond@[EM  2008-07-07 12:00:12 
Re: the un-vacuumable table
tgl@[EMAIL PROTECTED] (T  2008-07-07 15:33:10 
Re: the un-vacuumable table
andrew.george.hammond@[EM  2008-07-07 14:08:03 
Re: the un-vacuumable table
andrew.george.hammond@[EM  2008-07-07 15:04:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Fri Dec 5 8:57:12 CST 2008.