Re: [SQL] Auto-Vacuum? - Mailing list pgsql-sql

From Tim Perdue
Subject Re: [SQL] Auto-Vacuum?
Date
Msg-id 19990128191023.5620.rocketmail@send101.yahoomail.com
Whole thread Raw
Responses Re: [SQL] Auto-Vacuum?
List pgsql-sql
Thanks - I didn't know it was that easy.

What does the "dump" do? I have been just tarring the
/usr/local/pgsql/data/base/ directory and burning that onto a CD...

Do you worry about getting a fragmented Hard Disk? I would think if
there were a large number of adds/deletes you could end up with a
fragged disk.

Thanks a bunch,

Tim



---Brian <signal@shreve.net> wrote:
>
> On Thu, 28 Jan 1999, Tim Perdue wrote:
>
> > Just curious if anyone has written an vacuum shell script.
> >
>
> Just use cron:
>
> 00 01 * * *     /usr/local/pgsql/bin/psql shrevenet_users -c "vacuum;"
> 01 01 * * *     /usr/local/pgsql/bin/psql shrevenet_ftp -c "vacuum;"
> 02 01 * * *     /usr/local/pgsql/bin/psql shrevenet_counter -c
"vacuum;"
>
> etc.  Also before I vacuum, I dump each night (never can be too safe
:)
>
> 00 00 * * *     /usr/local/pgsql/bin/pg_dump shrevenet_users >
/usr/local/pgsql/backups/shrevenet_users.dump
> 01 00 * * *     /usr/local/pgsql/bin/pg_dump shrevenet_ftp >
/usr/local/pgsql/backups/shrevenet_ftp.dump
> 02 00 * * *     /usr/local/pgsql/bin/pg_dump shrevenet_counter >
/usr/local/pgsql/backups/shrevenet_counter.dump


==
______________________________________________________

Tim Perdue
tim@perdue.net


_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


pgsql-sql by date:

Previous
From: Brian
Date:
Subject: Re: [SQL] Auto-Vacuum?
Next
From: Douglas Nichols
Date:
Subject: Character type name?? How to lower case it?