Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8675933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:04:15+00:00 2026-06-12T20:04:15+00:00

I am very new to databases, I haven’t worked lot on it. Now I

  • 0

I am very new to databases, I haven’t worked lot on it. Now I want to understand the term database clusters. I googled a lot and found many useful links but I am not able to understand them – maybe because I have very little basic knowledge about databases and also they were in very techy language.

I need advice on these points:

  1. What are database clusters in PostgreSQL?
  2. How to create clusters in PostgreSQL?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T20:04:17+00:00Added an answer on June 12, 2026 at 8:04 pm

    A PostgreSQL database “cluster” is a postmaster and a group of subsiduary processes, all managing a shared data directory that contains one or more databases.

    The term “cluster” in PostgreSQL is a historical quirk*, and is completely different to the general meaning of “compute cluster”, which normally refers to groups of computers that work together to achieve higher performance and/or availability. It is also un-related to the PostgreSQL command CLUSTER, which is about organizing tables.


    If you’re reading this you might actually be looking for information on high availability, replication or pooling, in which case you should read the Replication, Clustering and High Availability wiki article and the high availability section of the PostgreSQL manual, then look into tools like repmgr.


    A cluster is normally created for you when you install PostgreSQL; the installation will usually initdb a new cluster for you. It is quite unusual for a basic or intermediate user to ever need to create clusters or manage multiple clusters, so it would help if you explained why you want to do this, and what the underlying problem you are trying to solve is. The user manual could probably explain this better, since it assumes you’re installing PostgreSQL from source and relatively few people actually do that.

    Each cluster’s data directory is created with initdb and managed with a postmaster that’s started via a system service (Windows service, launchd, init, upstart, systemd, etc depending on operating system and version) or directly via pg_ctl.

    The cluster has built-in databases template0, template1 and postgres; other databases are created by the user.

    The postmaster for a cluster accepts incoming connections by listening on a tcp port, and hands those off to worker backends. Only one postmaster may run on a given port, so each cluster must have a different port.

    I wrote more about PostgreSQL’s structure in this previous answer. See the sub-heading “Relations? Schema? Huh?”.

    How to “create” clusters in Pg depends entirely on how you are running it. Since you’re asking, I suspect you’re on an Ubuntu system that uses pg_wrapper, in which case you’d use the pg_wrapper commands like pg_createcluster.


    * The confusion between a “cluster” in PostgreSQL terminology and the common usage of the term “cluster” is a confusing and regrettable historical oddity, especially when discussing clustering of PostgreSQL instances. You can have a cluster of PostgreSQL clusters, which is just painful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have very little experience designing databases, and now I want to create a
I am very new to working with databases. Now I can write SELECT ,
Possible Duplicate: how to join 2 tables I am very new to databases. I
I'm very new to working with databases in C# (but not C# itself) and
Very new to python and can't understand why this isn't working. I have a
Very new to JQuery and MVC and webdevelopment over all. I'm now trying to
Disclaimer: I'm very new to SQL and databases in general. I need to create
New to Python and Databases I have a database table set up with a
I am very new using JUnit. I want to test some classes that implements
I'm very new to MySQL, although I've used SQL databases in other contexts before.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.