• Data Warehouse Service

dws
  1. Help Center
  2. Data Warehouse Service
  3. Developer Guide
  4. SQL Reference
  5. SQL Syntax
  6. ALTER NODE

ALTER NODE

Function

ALTER NODE modifies the definition of an existing node.

Precautions

ALTER NODE is the internal interface of cluster management tool. You are not advised to use this interface, because doing so affects the cluster.

Syntax

ALTER NODE nodename WITH
  (
    [ TYPE = nodetype,]
    [ HOST = hostname,]
    [ PORT = portnum,]
    [ HOST1 = 'hostname',]
    [ PORT1 = portnum,]
    [ HOSTPRIMARY [ = boolean ],]
    [ PRIMARY [ = boolean ],]
    [ PREFERRED [ = boolean ],]
    [ SCTP_PORT = portnum,]
    [ CONTROL_PORT = portnum,]
    [ SCTP_PORT1 = portnum,]
    [ CONTROL_PORT1 = portnum, ]
    [ NODEIS_CENTRAL [ = boolean ]]
  );
NOTE:

The port whose number is specified by PORT is used for internal communications between nodes. Unlike the port number which connect node by external client, it can be queried in the pgxc_node table.

Parameter Description

See Parameter description in CREATE NODE.

Helpful Links

CREATE NODEDROP NODE