pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Browne <cbbrowne@acm.org>
To: pgsql-admin@postgresql.org
Subject: Re: autovacuum
Date: Sat, 04 Feb 2006 06:54:30 -0800
Message-ID: <m3k6cbmaxl.fsf@mobile.int.cbbrowne.com> (raw)
References: <6.2.1.2.2.20060204110331.03dc2eb0@81.215.12.210>

> i have PostgreSQL 8.1.2
>
> i want to enable autovacuum at my PostgreSQL 8.1.2  from postgresql.conf
> i've got 50-60 insert and/or update queries in a second in that case
> tables shouldn't be locked
> does autovacuum locks tables while vacuuming?

Of course it does; any request to access a relation will issue one or
more locks on the relation.

VACUUM issues an AccessShareLock request against each relation that is
vacuumed, which is probably nearly the same lock request your
applications will be requesting, save for the fact that they'll also
be submitting some RowExclusiveLock requests for individual rows of
relations.

http://www.postgresql.org/docs/8.1/interactive/mvcc.html
-- 
let name="cbbrowne" and tld="gmail.com" in name ^ "@" ^ tld;;
http://linuxdatabases.info/info/nonrdbms.html
"Bother," said Pooh, as he deleted his root directory.



view thread (29+ messages)  latest in thread

Message-ID: <m3k6cbmaxl.fsf@mobile.int.cbbrowne.com>
Permalink:  ../m3k6cbmaxl.fsf@mobile.int.cbbrowne.com/
Also on:    postgresql.org/message-id/m3k6cbmaxl.fsf@mobile.int.cbbrowne.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: cbbrowne@acm.org
  Subject: Re: autovacuum
  In-Reply-To: <m3k6cbmaxl.fsf@mobile.int.cbbrowne.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox