<data:blog.pageTitle/>

This Page

has moved to a new address:

https://vmvirtual.blog

Sorry for the inconvenience…

Redirection provided by Blogger to WordPress Migration Service
BIOLNX: marzo 2008

BIOLNX

martedì 4 marzo 2008

Pulizia PostgreSQL di Puremessage

Export DB, Drop DB, Import DB-

Dall'utente pmx :


set -a
PATH=$PATH:/var/pmx/postgres/bin
PGDATA=/var/pmx/postgres/var/data
PGUSER=pmx
PGDATABASE=pmx_quarantine
pg_ctl stop -mfast
PGPORT=5433
pg_ctl start -o "-p$PGPORT" -l /var/pmx/var/5433.log
time pg_dump -Fc >/var/pmx/var/pmdb.zdump
dropdb $PGDATABASE
createdb $PGDATABASE
time pg_restore /var/pmx/var/pmdb.zdump | psql -qet>/var/pmx/var/load.log
2>&1
time vacuumdb -vz 2>/var/pmx/var/initvac.log
pg_ctl stop
unset PGPORT
pmx-database start