Help Center > > Developer Guide> SQL Reference> SQL Syntax> ALTER NODE

ALTER NODE

Updated at: Mar 13, 2020 GMT+08:00

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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 ]]
  );

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 NODE, DROP NODE

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel