Re: VACUUM and transactions in different databases

From: Christopher Browne <cbbrowne(at)acm(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: VACUUM and transactions in different databases
Date: 2006-12-07 02:28:07
Message-ID: 878xhko2x4.fsf@wolfe.cbbrowne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Oops! c(at)cornelia-boenigk(dot)de (Cornelia Boenigk) was seen spray-painting on a wall:
> Hi all
>
> If I have a running transaction in database1 and try to vacuum
> database2 but the dead tuples in database2 cannot be removed.
>
> INFO: vacuuming "public.dummy1"
> INFO: "dummy1": found 0 removable, 140000 nonremovable row versions
> in 1341 pages
> DETAIL: 135000 dead row versions cannot be removed yet.
>
> How can I achieve that database2 is vacuumed while a transaction in
> database1 is not yet commited?

You can't, unless you're on 8.1, and the not-yet-committed transaction
is VACUUM.

You have discovered a known factor, that a transaction left open on
one database may have adverse effects on another database.
--
(format nil "~S(at)~S" "cbbrowne" "acm.org")
http://linuxdatabases.info/info/rdbms.html
Signs of a Klingon Programmer #4: "A TRUE Klingon Warrior does not
comment his code!"

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message developer 2006-12-07 07:32:26 how to install 8.2 with yum on centos 4?
Previous Message Ron Johnson 2006-12-07 02:23:08 Re: Anything I can do to speed up this query?