Thread: Re: [SQL] Auto-Vacuum?

Re: [SQL] Auto-Vacuum?

From
Tim Perdue
Date:
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


Re: [SQL] Auto-Vacuum?

From
"D'Arcy" "J.M." Cain
Date:
Thus spake Tim Perdue
> 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.

Don't worry about it unless you are running on the new NT version.
Fragmented disks was a "feature" of DOS and Windows.  It really
doesn't apply to most modern Unix systems which is where you should
be running the server.

--
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.