NAME

pmx-database - The service control program for PureMessage databases.


SYNOPSIS

    pmx-database start
    pmx-database stop
    pmx-database restart
    pmx-database status
    pmx-database analyze
    pmx-database vacuum
    pmx-database dump   <filename>
    pmx-database import <filename>


DESCRIPTION

pmx-database is a generic control program for the PureMessage PostgreSQL database server. It is used to start, stop and monitor the database server. The database server is defined by the pmx_db variable in pmx.conf, or by the $PMX_DB environment variable.

Run pmx-database as the PureMessage user (by default 'pmx'). You can also run pmx-init as root, or from system startup and shutdown scripts.

The following sub-commands are recognized:

pmx-database start
Start the database server if it is not already running.

pmx-database stop
Stop the database server.

pmx-database restart
Restart the database server.

pmx-database status
Print status information about the database server.

pmx-database analyze
Generate statistics information for the database query optimizer

pmx-database vacuum
Clean the database, perform garbage collection.

pmx-database reinit
Re-initializes the database by dropping all database objects (tables, indexes, constraints, etc) and recreating them. Results in removal of the entire database contents (confirmation will be requested).

pmx-database dump filename
Dump the database contents to the specified file.

Note that the filename must be writeable by the PostgreSQL user. This can be done by either dumping to a file in /tmp (or another location that is world writeable), or manually changing the permissions.

Example: $ touch filename $ chmod a+w filename $ pmx-database dump filename

pmx-database import
Import data from the specified file into the database.


COPYRIGHT

Copyright (C) 2000-2009 Sophos Group. All rights reserved. Sophos and PureMessage are trademarks of Sophos Plc and Sophos Group.