Re: How is statement level read consistency implemented?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: "Roberts, Jon" <Jon(dot)Roberts(at)asurion(dot)com>
Cc: Thomas Kellerer <spam_eater(at)gmx(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: How is statement level read consistency implemented?
Date: 2008-04-22 13:10:14
Message-ID: 20080422131014.GB5130@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Roberts, Jon wrote:

> Back to PostgreSQL, when a vacuum is issued, the old deleted rows are
> removed. This can be done with the autovacuum feature or manually.
>
> -Does vacuum make sure there are no long running queries referencing the
> deleted rows before it attempts to remove the old rows?

It does.

> -With autovacuum, does it skip these rows still being referenced in a
> transaction or does it wait?

It skips them, the idea being that a future vacuum will remove them.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Roberts, Jon 2008-04-22 13:10:38 Re: FW: Re: create temp in function
Previous Message Thomas Kellerer 2008-04-22 13:06:54 Re: How is statement level read consistency implemented?