pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Christian Paul B. Cosinas <cpc@cybees.com>
Cc: 'Joshua D. Drake' <jd@commandprompt.com>
Cc: Alvaro Nunes Melo <al_nunes@atua.com.br>
Cc: pgsql-performance@postgresql.org
Subject: Re: Temporary Table
Date: Tue, 08 Nov 2005 10:24:20 +0800
Message-ID: <43700C54.2010701@familyhealth.com.au> (raw)
In-Reply-To: <008401c5e44e$42600c20$1e21100a@ghwk02002147>
References: <008401c5e44e$42600c20$1e21100a@ghwk02002147>

Or you could just run the 'vacuumdb' utility...

Put something like this in cron:

# Vacuum full local pgsql database
30 * * * *  postgres  vacuumdb -a -q -z

You really should read the manual.

Chris

Christian Paul B. Cosinas wrote:
> I see.
> 
> But How Can I put this in the Cron of my Linux Server?
> I really don't have an idea :)
> What I want to do is to loop around all the databases in my server and
> execute the vacuum of these 3 tables in each tables.
> 
> -----Original Message-----
> From: Joshua D. Drake [mailto:jd@commandprompt.com]
> Sent: Tuesday, November 08, 2005 2:11 AM
> To: Christian Paul B. Cosinas
> Cc: 'Alvaro Nunes Melo'; pgsql-performance@postgresql.org
> Subject: Re: [PERFORM] Temporary Table
> 
> Christian Paul B. Cosinas wrote:
> 
>>I try to run this command in my linux server.
>>VACUUM FULL pg_class;
>>VACUUM FULL pg_attribute;
>>VACUUM FULL pg_depend;
>>
>>But it give me the following error:
>>	-bash: VACUUM: command not found
> 
> 
> That needs to be run from psql ...
> 
> 
>>
>>
>>
>>
>>I choose Polesoft Lockspam to fight spam, and you?
>>http://www.polesoft.com/refer.html    
>>
>>
>>---------------------------(end of 
>>broadcast)---------------------------
>>TIP 4: Have you searched our list archives?
>>
>>               http://archives.postgresql.org
> 
> 
> 
> I choose Polesoft Lockspam to fight spam, and you?
> http://www.polesoft.com/refer.html    
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster




view thread (17+ messages)  latest in thread

Message-ID: <43700C54.2010701@familyhealth.com.au>
Permalink:  ../43700C54.2010701@familyhealth.com.au/
Also on:    postgresql.org/message-id/43700C54.2010701@familyhealth.com.au

 · 

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-performance@postgresql.org
  Cc: chriskl@familyhealth.com.au, cpc@cybees.com, jd@commandprompt.com, al_nunes@atua.com.br
  Subject: Re: Temporary Table
  In-Reply-To: <43700C54.2010701@familyhealth.com.au>
  References: <008401c5e44e$42600c20$1e21100a@ghwk02002147> <43700C54.2010701@familyhealth.com.au>

* 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