Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

running pg_dumpall makes a backup of the cluster "main", but I have another cluster "custom". How do I make pg_dumpall produce a backup of "custom"?

share|improve this question
up vote 3 down vote accepted

Every cluster is served by a different Postgres instance, listening on different port and/or using different unix domain socket (if there are different instances running on one machine).

So you need to pass different value for the port:

-p port

    Specifies the TCP port or local Unix domain socket file extension on which the server is listening for connections. Defaults to the PGPORT environment variable, if set, or a compiled-in default.
share|improve this answer
The default value of the port for a given cluster can be found in the postgresql.conf file in the cluster folder. – tjb May 3 '12 at 7:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.