O'Reilly logo

PostgreSQL Cookbook by Chitij Chauhan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up the Postgres-XC cluster

In this recipe, we are going to set up a Postgres-XC cluster.

Getting ready

Here, we need to install and set up Postgres-XC. These steps are carried out on a CentOS Version 6 Linux machine.

Perform the following set of steps:

  1. First, go to http://sourceforge.net/projects/postgres-xc/ in order to download the Postgres-XC software.
  2. In this step, extract from the tarball file and go to the newly created directory:
    tar -zxvf pgxc-v1.0.4.tar.gz 
    cd   pgxc-v1.0.4
    
  3. Before you build and compile the software, the next step will be to install the following prerequisite packages:
    yum -y install readline*
    yum -y install bison*
    yum -y install flex*
    
  4. Now, we are going to build and compile the software. We will also define a location ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required