> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify-poc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# timescaledb_information.data_nodes

> Get information on data nodes in a multi-node cluster

export const TIMESCALE_DB = 'TimescaleDB';

<Icon icon="box-archive" iconType="duotone" /> Sunsetted [v2.14.0][tsdb-2.14.0] <Icon icon="tag" iconType="duotone" /> Since [2.0.0][tsdb-2.0.0]

Get information on data nodes. This function is specific to running
{TIMESCALE_DB} in a multi-node setup.

## Samples

Get metadata related to data nodes.

```sql theme={"dark"}
SELECT * FROM timescaledb_information.data_nodes;

 node_name    | owner      | options
--------------+------------+--------------------------------
 dn1         | postgres   | {host=localhost,port=15431,dbname=test}
 dn2         | postgres   | {host=localhost,port=15432,dbname=test}
(2 rows)
```

## Returns

| Name        | Type     | Description                               |
| ----------- | -------- | ----------------------------------------- |
| `node_name` | TEXT     | Data node name.                           |
| `owner`     | REGCLASS | Oid of the user, who added the data node. |
| `options`   | JSONB    | Options used when creating the data node. |

[tsdb-2.0.0]: https://github.com/timescale/timescaledb/releases/tag/2.0.0

[tsdb-2.14.0]: https://github.com/timescale/timescaledb/releases/tag/2.14.0
