Re: Unexpected VACUUM FULL failure

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Unexpected VACUUM FULL failure
Date: 2007-08-09 01:14:44
Message-ID: 20070809011444.GC2728@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> This is a bit disturbing:
>
> *** ./expected/vacuum.out Sat Jul 20 00:58:14 2002
> --- ./results/vacuum.out Wed Aug 8 20:16:45 2007
> ***************
> *** 50,55 ****
> --- 50,56 ----
>
> DELETE FROM vactst WHERE i != 0;
> VACUUM FULL vactst;
> + ERROR: HEAP_MOVED_OFF was expected
> DELETE FROM vactst;
> SELECT * FROM vactst;
> i
>
> ======================================================================
>
> This is today's CVS HEAD, plus some startup/shutdown logic changes in
> postmaster.c that hardly seem like they could be related.
>
> I couldn't reproduce it in a few tries. A reasonable guess is that
> it's triggered by autovacuum deciding to vacuum the table sometime
> before the VACUUM FULL starts. Anyone want to try to reproduce it?

Hum, aren't vacuums supposed to be blocked by each other? Maybe this is
about a toast table not being locked enough against concurrent vacuuming
of the main table.

I'm currently away on vacation, which is why I've missed all the stuff
going on here. Sorry for not letting people know.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-08-09 01:24:24 Re: Unexpected VACUUM FULL failure
Previous Message Bruce Momjian 2007-08-09 01:07:15 Re: default_text_search_config and expression indexes