{
    "mode": "man",
    "parameter": "postgresqlrc",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/postgresqlrc/5/json",
    "generated": "2026-06-02T17:57:26Z",
    "sections": {
        "NAME": {
            "content": "~/.postgresqlrc - Per-user PostgreSQL cluster configuration\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The  file  ~/.postgresqlrc  configures the default PostgreSQL version/cluster and the default\ndatabase for an user. If  it  is  not  present,  the  system-wide  file  /etc/postgresql-com‐‐\nmon/userclusters is used instead.\n\n",
            "subsections": []
        },
        "FORMAT": {
            "content": "Comments  are  introduced  by the character #.  Comments may follow data on a line; the first\ncomment character terminates the data.  Leading whitespace and blank lines are ignored.\n\nThe first uncommented, non-blank line is used, all following lines are ignored.\n\nFields must be given in the following order, separated by white space:\n\n\nVERSION\nThe major PostgreSQL version of the cluster to connect to.\n\nCLUSTER\nThe name of a cluster to connect to. A remote cluster is specified with host:port.  If\nport is empty, it defaults to 5432.\n\nDATABASE\nWithin  the cluster, the database to which the user will connect by default if he does\nnot specify a database on the command line.  If this is *, the default  database  will\nbe the one named by the user's login id.\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pgwrapper(1), userclusters(5)\n\n\n\nDebian                                      Feburary 2005                            POSTGRESQLRC(5)",
            "subsections": []
        }
    },
    "summary": "~/.postgresqlrc - Per-user PostgreSQL cluster configuration",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pgwrapper",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pgwrapper/1/json"
        },
        {
            "name": "userclusters",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/userclusters/5/json"
        }
    ]
}