Re: [ADMIN] Vacuum script

1999-12-18 Thread Bruce Momjian
On Fri, 17 Dec 1999, Bruce Momjian wrote: It would be nice for new users; I think it would make it easier for them to actually set out and do it. Many new users are of the not-so-knowledgable variety, and shell scripting isn't something they want to undertake. Can someone

RE: [ADMIN] Vacuum script

1999-12-17 Thread Nicolas Huillard
e- De: Lamar Owen [SMTP:[EMAIL PROTECTED]] Date: jeudi 16 décembre 1999 17:44 À: Nicolas Huillard Cc: '[EMAIL PROTECTED]' Objet: Re: [ADMIN] Vacuum script Nicolas Huillard wrote: Thanks for this very simple and beautiful line ! You could simplify it by only having : 02

Re: [ADMIN] Vacuum script

1999-12-17 Thread Peter Eisentraut
On 1999-12-16, [EMAIL PROTECTED] mentioned: On Thu, 16 Dec 1999, Peter Eisentraut wrote: Actually such a script, called vacuumdb, with exactly those options is included in the distribution and should be installed in your bin dir right next to psql. Unfortunately, the vacuumdb script

Re: [ADMIN] Vacuum script

1999-12-17 Thread kkeller
On 18 Dec, Peter Eisentraut wrote: Point granted, but you could use something like this for db in `psql -t -A -d template1 -c "select datname from\ pg_database"`; do vacuum $db ; done rather than re-inventing the wheel. Certainly. I wrote my perl script because I originally intended to

Re: [ADMIN] Vacuum script

1999-12-17 Thread Bruce Momjian
On 18 Dec, Peter Eisentraut wrote: Point granted, but you could use something like this for db in `psql -t -A -d template1 -c "select datname from\ pg_database"`; do vacuum $db ; done rather than re-inventing the wheel. Certainly. I wrote my perl script because I originally

Re: [ADMIN] Vacuum script

1999-12-17 Thread neko
On Fri, 17 Dec 1999, Bruce Momjian wrote: It would be nice for new users; I think it would make it easier for them to actually set out and do it. Many new users are of the not-so-knowledgable variety, and shell scripting isn't something they want to undertake. Can someone modify the

[ADMIN] Vacuum script

1999-12-16 Thread Nicolas Huillard
Hello, Does anybody already wrote a cron script that periodically (with cron) vacuum all (or part of all) database on a single server ? I'm sure everyone has this kind of stuff : $ pg_vacuum [-h hostname] [-u] [options] [dbname] Can someone share his script, or can I find it on the CVS (please

Re: [ADMIN] Vacuum script

1999-12-16 Thread ZioBudda
On Thu, 16 Dec 1999, Nicolas Huillard wrote: Hello, Does anybody already wrote a cron script that periodically (with cron) vacuum all (or part of all) database on a single server ? I'm sure everyone has this kind of stuff : $ pg_vacuum [-h hostname] [-u] [options] [dbname] Can someone

RE: [ADMIN] Vacuum script

1999-12-16 Thread Nicolas Huillard
es crontab each time a new DB is added to Postgres... Nicolas -Message d'origine- De: ZioBudda [SMTP:[EMAIL PROTECTED]] Date: jeudi 16 décembre 1999 15:09 À: Nicolas Huillard Cc: '[EMAIL PROTECTED]' Objet: Re: [ADMIN] Vacuum script On Thu, 16 Dec 1999, Nicolas Huillard wrot

RE: [ADMIN] Vacuum script

1999-12-16 Thread Oleg Broytmann
On Thu, 16 Dec 1999, Nicolas Huillard wrote: Thanks for this very simple and beautiful line ! You could simplify it by only having : 02 0 * * * echo "vacuum verbose;" | psql faq Frankly, I'd prefer a script that automatically adapt to any added database in the whole system : as an

RE: [ADMIN] Vacuum script

1999-12-16 Thread Nicolas Huillard
: '[EMAIL PROTECTED]' Objet: RE: [ADMIN] Vacuum script Debian GNU/Linux system distrubuted with excelent script of this sort - it asks Postgres, get a list of DBs and vacuum them all in a loop. Oleg.

Re: [ADMIN] Vacuum script

1999-12-16 Thread ZioBudda
On Thu, 16 Dec 1999, Mark Jewiss wrote: Hello, On Thu, 16 Dec 1999, ZioBudda wrote: Can someone share his script, or can I find it on the CVS (please tell me where, because I've never used that) I've got a perl script which will look through what db's you have, then make a tar.gz

Re: [ADMIN] Vacuum script

1999-12-16 Thread Lamar Owen
Nicolas Huillard wrote: Thanks for this very simple and beautiful line ! You could simplify it by only having : 02 0 * * * echo "vacuum verbose;" | psql faq Frankly, I'd prefer a script that automatically adapt to any added database in the whole system : as an administrator, I don't want

Re: [ADMIN] Vacuum script

1999-12-16 Thread Keith Keller
Here is a perl script I use for vacuuming. It's in my postgres crontab, so that it runs with the proper environment variables. There's probably a more elegant solution, but this works okay for me. --Keith [EMAIL PROTECTED]

Re: [ADMIN] Vacuum script

1999-12-16 Thread Peter Eisentraut
On 1999-12-16, Nicolas Huillard mentioned: Does anybody already wrote a cron script that periodically (with cron) vacuum all (or part of all) database on a single server ? I'm sure everyone has this kind of stuff : $ pg_vacuum [-h hostname] [-u] [options] [dbname] Can someone share his