vacuum all but system tables

From: "Victor Yegorov" <viy(at)pirmabanka(dot)lv>
To: "Postgres SQL" <pgsql-sql(at)postgresql(dot)org>
Subject: vacuum all but system tables
Date: 2003-03-19 08:38:46
Message-ID: 20030319083846.GB14195@pirmabanka.lv
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello.

I'd like to make a script to automatically vacuum all my DBs nightly. And
I'd like to skip system tables, starting with pg_*.

I've seen in the list archives somebody's solution using regexps,
something like:

$> vacuum analyze !~ ^pg_;

It doesn't work for me, and I cannot find the original post I've seen some
time ago.

I'm running:
`PostgreSQL 7.3.2 on i686-pc-linux-gnu, compiled by GCC 2.95.3'.

Maybe someone came across with this and could help?

--

Victor Yegorov

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Christoph Haller 2003-03-19 10:01:56 Re: Casting with character and character varying
Previous Message Tomasz Myrta 2003-03-19 08:12:06 Re: Number of rows affected by an update