Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pgpool(8) [debian man page]

PGPOOL(8)						      System Manager's Manual							 PGPOOL(8)

NAME
pgpool - PostgreSQL connection pool daemon SYNOPSIS
pgpool [ -c] [ -f config_file ] [ -F pcp_config_file ] [ -a hba_file ] [ -n ] [ -d ] pgpool [ -f config_file ] [ -F pcp_config_file ] [ -a hba_file ] [ -m {s[mart]|f[ast]|i[mmediate]} ] stop pgpool [ -f config_file ] [ -F pcp_config_file ] [ -a hba_file ] reload DESCRIPTION
pgpool is a connection pool server for PostgreSQL. pgpool runs between PostgreSQL's client and server. Any PostgreSQL client can connect to pgpool as if it's a real PostgreSQL server. pgpool caches the connection to the PostgreSQL server to reduce the overhead involved in establishing the connection to it. pgpool can also be used with two PostgreSQL servers for fail over purposes. If the first server goes down, pgpool will automatically switch to the secondary server. pgpool is typically started and stopped via system initialization scripts. INVOCATION
pgpool [ options... ] Starts as a daemon in the background (unless -n is given). pgpool [ options... ] stop Shutdown. pgpool [ options... ] reload Reloads the configuration. OPTIONS
-a path --hba-file path Sets the path to the pool_hba.conf configuration file (default: /etc/pgpool2/pgpool_hba.conf). -c --clear-cache Clears the query cache. -d --debug Print lots of debug messages. -f path --config-file path Sets the path to the pgpool.conf configuration file (default: /etc/pgpool2/pgpool.conf). -F path --pcp-config-file path Sets the path to the pcp.conf configuration file (default: /etc/pgpool2/pcp.conf). -h --help Print a help message and exit. -m mode --mode mode Shutdown mode: smart, fast, or immediate. -n --no-daemon Foreground mode. Error messages go to stdout or stderr, which could be piped out to log processors such as logger(1) or rotatelogs(8). To daemonize, explicitly invoke pgpool in background. -v --version Print version and exit. FILES
/etc/pgpool2/pgpool.conf Default configuration file /etc/pgpool2/pool_hba.conf Host Based Access configuration file /etc/pgpool2/pcp.conf PCP commands configuration file SEE ALSO
logger(1), postmaster(1), rotatelogs(8) Additional information can be found in the pgpool README file. 12 Oct 2009 PGPOOL(8)

Check Out this Related Man Page

PG_CTLCLUSTER(8)					 Debian PostgreSQL infrastructure					  PG_CTLCLUSTER(8)

NAME
pg_ctlcluster - start/stop/restart/reload a PostgreSQL cluster SYNOPSIS
pg_ctlcluster [options] cluster-version cluster-name action -- [pg_ctl options] where action = start|stop|restart|reload|promote DESCRIPTION
This program controls the postmaster server for a particular cluster. It essentially wraps the pg_ctl(1) command. It determines the cluster version and data path and calls the right version of pg_ctl with appropriate configuration parameters and paths. You have to start this program as the user who owns the database cluster or as root. ACTIONS
start A log file for this specific cluster is created if it does not exist yet (by default, /var/log/postgresql/postgresql-cluster- version-cluster-name.log), and a PostreSQL server process (postmaster(1)) is started on it. Exits with 0 on success, with 2 if the server is already running, and with 1 on other failure conditions. stop Stops the postmaster(1) server of the given cluster. By default, "smart" mode is used, which waits until all clients disconnected. With the --force option the "fast" mode is used which rolls back all active transactions, disconnects clients immediately and thus shuts down cleanly. If that does not work, shutdown is attempted again in "immediate" mode, which can leave the cluster in an inconsistent state and thus will lead to a recovery run at the next start. If this still does not help, the postmaster process is killed. Exits with 0 on success, with 2 if the server is not running, and with 1 on other failure conditions. This mode should only be used when the machine is about to be shut down. restart Stops the server if it is running and starts it (again). reload Causes the configuration files to be re-read without a full shutdown of the server. promote Commands a running standby server to exit recovery and begin read-write operations. OPTIONS
-o option Pass given option as command line option to the postmaster process. It is possible to specify -o multiple times. See postmaster(1) for a description of valid options. pg_ctl options Pass given pg_ctl options as command line options to pg_ctl. See pg_ctl(1) for a description of valid options. FILES
/etc/postgresql/cluster-version/cluster-name/pg_ctl.conf This configuration file contains cluster specific options to be passed to pg_ctl(1). SEE ALSO
pg_ctl(1), pg_wrapper(1), pg_lsclusters(1), postmaster(1) AUTHOR
Martin Pitt <mpitt@debian.org> Debian 2012-10-08 PG_CTLCLUSTER(8)
Man Page