From: Jeff Boes <jboes@nexcerpt.com>
To: pgsql-admin@postgresql.org
Subject: VACUUM on multi-CPU systems?
Date: Mon, 26 Aug 2002 12:04:23 -0400
Message-ID: <akdjh0$j5b$1@news.hub.org> (raw)
Does anyone have any thoughts on whether my database vacuum/full/analyze
might go faster on our 2-CPU system if I generated the VACUUM commands
into a script, e.g.,
psql -a <<EOF
\t
\o /tmp/db_maint.$$
select distinct on (relname) 'VACUUM FULL ANALYZE "' || relname || '";'
from pg_class
where relkind='r'
\g
\o
EOF
(generates a script that looks like
VACUUM FULL ANALYZE table1;
VACUUM FULL ANALYZE table2;
etc.)
and then started two psql sessions each processing half of the file?
--
Jeff Boes vox 269.226.9550 ext 24
Database Engineer fax 269.349.9076
Nexcerpt, Inc. http://www.nexcerpt.com
...Nexcerpt... Extend your Expertise
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: jboes@nexcerpt.com
Subject: Re: VACUUM on multi-CPU systems?
In-Reply-To: <akdjh0$j5b$1@news.hub.org>
References: <akdjh0$j5b$1@news.hub.org>
* 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