Re: the un-vacuumable table
От | Andrew Hammond |
---|---|
Тема | Re: the un-vacuumable table |
Дата | |
Msg-id | 5a0a9d6f0806250957i43b2e2e1x7ee731d7f2731c0c@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: the un-vacuumable table ("Heikki Linnakangas" <heikki@enterprisedb.com>) |
Ответы |
Re: the un-vacuumable table
|
Список | pgsql-hackers |
On Wed, Jun 25, 2008 at 2:58 AM, Heikki Linnakangas <heikki@enterprisedb.com> wrote:
After the restart I did a count(*) and it worked. A little under 13m rows. So, sequential scans seem to work.
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.
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
Andrew Hammond wrote:What kind of an index is it? Does "SELECT COUNT(*) from <table>" work?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).
After the restart I did a count(*) and it worked. A little under 13m rows. So, sequential scans seem to work.
Yes, please take a filesystem-level backup right away to retain the evidence.posting here in case there's interest in gathering some forensic data or aAnyway, the current plan is to drop the table and reload it from backup. I'm
clever suggetion about how I can recover this situation or even some ideas
about what's causing it.
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.
В списке pgsql-hackers по дате отправления: