pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matthew T. O'Connor <matthew@zeut.net>
Cc: Thomas Swan <tswan@idigx.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Jeff Boes <jboes@nexcerpt.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: pg_autovacuum crashes when query fails for temp
Date: Tue, 20 Apr 2004 23:29:02 -0400
Message-ID: <25435.1082518142@sss.pgh.pa.us> (raw)
In-Reply-To: <37398.192.154.91.225.1082485149.squirrel@192.154.91.225>
References: <200404201525.i3KFPp809934@candle.pha.pa.us>
	<40855DF0.3010300@idigx.com>
	<37398.192.154.91.225.1082485149.squirrel@192.154.91.225>

"Matthew T. O'Connor" <matthew@zeut.net> writes:
>> Bruce Momjian wrote:
>> Should pg_autovacuum be vacuuming temporary tables?

> This is a good question, and I would like some opinions from some other
> people more informed than I.

You *can not* vacuum other sessions' temp tables; you don't have access
to the data.  (You have no way to get at pages that are modified in
someone else's local buffer manager.)  You could vacuum your own temp
tables, if you had any, but I would hardly expect autovacuum to have
any.

In reference to Chris' followup question, you *should* be vacuuming
system catalogs, and you *should not* be vacuuming TOAST tables.  VACUUM
on a regular table automatically hits the associated TOAST table.

			regards, tom lane



view thread (16+ messages)  latest in thread

Message-ID: <25435.1082518142@sss.pgh.pa.us>
Permalink:  ../25435.1082518142@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25435.1082518142@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, matthew@zeut.net, tswan@idigx.com, pgman@candle.pha.pa.us, jboes@nexcerpt.com, pgsql-hackers@postgresql.org
  Subject: Re: pg_autovacuum crashes when query fails for temp
  In-Reply-To: <25435.1082518142@sss.pgh.pa.us>
  References: <200404201525.i3KFPp809934@candle.pha.pa.us> <40855DF0.3010300@idigx.com> <37398.192.154.91.225.1082485149.squirrel@192.154.91.225> <25435.1082518142@sss.pgh.pa.us>

* 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