pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Sabino Mullane <greg@turnstep.com>
To: pgsql-performance@postgresql.org
Subject: Re: How to avoid vacuuming a huge logging table
Date: Wed, 21 Feb 2007 21:58:33 -0000
Message-ID: <cfa4aeda403c8884312dadae31ba07d7@biglumber.com> (raw)
In-Reply-To: <eri1gd$29bq$1@news.hub.org>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


A minor correction to my earlier post: I should have specified the 
schema as well in the vacuum command for tables with the same 
name in different schemas:

SET search_path = 'pg_catalog';
SELECT set_config('search_path',
  current_setting('search_path')||','||quote_ident(nspname),'false')
  FROM pg_namespace
  WHERE nspname <> 'pg_catalog'
  ORDER BY 1;

\t
\o pop
SELECT 'vacuum verbose analyze '||quote_ident(nspname)||'.'||quote_ident(relname)||';' 
  FROM pg_class c, pg_namespace n
  WHERE relkind = 'r'
  AND relnamespace = n.oid
  AND nspname = 'novac'
  ORDER BY 1;
\o
\i pop

- --
Greg Sabino Mullane greg@turnstep.com
End Point Corporation
PGP Key: 0x14964AC8 200702211652
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iD8DBQFF3L+XvJuQZxSWSsgRAwzeAKDz+YmLmm9K0of/ObjUux/P7fg7jwCfeSoK
TfVGoSyThrdFjlGXWn1aEGI=
=/jBZ
-----END PGP SIGNATURE-----





view thread (4+ messages)  latest in thread

Message-ID: <cfa4aeda403c8884312dadae31ba07d7@biglumber.com>
Permalink:  ../cfa4aeda403c8884312dadae31ba07d7@biglumber.com/
Also on:    postgresql.org/message-id/cfa4aeda403c8884312dadae31ba07d7@biglumber.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-performance@postgresql.org
  Cc: greg@turnstep.com
  Subject: Re: How to avoid vacuuming a huge logging table
  In-Reply-To: <cfa4aeda403c8884312dadae31ba07d7@biglumber.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