27.1. Standard Unix Tools

    (The appropriate invocation of ps varies across different platforms, as do the details of what is shown. This example is from a recent Linux system.) The first process listed here is the master server process. The command arguments shown for it are the same ones used when it was launched. The next five processes are background worker processes automatically launched by the master process. (The “stats collector” process will not be present if you have set the system not to start the statistics collector; likewise the “autovacuum launcher” process can be disabled.) Each of the remaining processes is a server process handling one client connection. Each such process sets its command line display in the form

    If cluster_name has been configured the cluster name will also be shown in ps output:

    Solaris requires special handling. You must use /usr/ucb/ps, rather than . You also must use two w flags, not just one. In addition, your original invocation of the postgrescommand must have a shorter ps status display than that provided by each server process. If you fail to do all three things, the ps output for each server process will be the original command line.