Postgres-XC Wiki

What we've determined[]

As in Real Server configuration, we've assigned the following:

  1. User: postgresxc
  2. Configure at: node03
  3. Work directory: /home/postgresxc/pgxc/gtm
  4. Node name: gtm
  5. Port number: 20001

First, we create template of GTM at node03 as follows:

[main]$ ssh node03
[node03]$ initgtm -Z gtm -D /home/postgresxc/pgxc/gtm

initgtm creates template configuration file for gtm. For details, please visit initgtm document page.

Now you should add node name and port number to the configuration file, gtm.conf.

It is very simple. Do as follows:

[node03]$ cat >> /home/postgresxc/pgxc/gtm/gtm.conf << EOF
nodename = 'gtm'
listen_addresses = '*'
port = 20001
[node03]$ exit

You can do the same thing using your favorite text editor like vi or emacs. With them, you will find many example lines of the configuration file.

You finished your GTM configuration. Very simple.