This function is executed on an access node to remove a data
node from the local database. As part of the deletion, the data node
is detached from all hypertables that are using it, if permissions
and data integrity requirements are satisfied. For more information,
Deleting a data node is strictly a local operation; the data node itself is not affected and the corresponding remote database on the data node is left intact, including all its data. The operation is local to ensure it can complete even if the remote data node is not responding and to avoid unintentional data loss on the data node.
add_data_nodeto add the same data node again without first deleting the database on the data node or using another database. This is to prevent adding a data node that was previously part of the same or another distributed database but is no longer synchronized.
An error will be generated if the data node cannot be detached from all attached hypertables.
|TEXT||Name of the data node.|
|BOOLEAN||Prevent error if the data node does not exist. Defaults to false.|
|BOOLEAN||Force removal of data nodes from hypertables unless that would result in data loss. Defaults to false.|
|BOOLEAN||Make the number of space partitions equal to the new number of data nodes (if such partitioning exists). This ensures that the remaining data nodes are used evenly. Defaults to true.|
A boolean indicating if the operation was successful or not.
To delete a data node named
Found an issue on this page?Report an issue!