GLOBAL_GS_SEG_SPC_SEGMENTS
GLOBAL_GS_SEG_SPC_SEGMENTS displays the information about used segments of all tablespaces on all nodes, which can only be executed on the CN. Only an administrator can query the information.
Name | Type | Description |
|---|---|---|
node_name | text | Node name. |
tablespace_name | name | Tablespace name. |
file_id | integer | Data file ID. Value range: an int4 value in the range [1,5]. |
bucketnode | integer |
|
forknum | integer | Fork type of a segment object. The options are as follows:
|
block_id | bigint | Start page number of a data extent. |
blocks | integer | Data extent size. The value can be 1, 8, 128, 1024, or 4096. |
contents | text | Storage content of a data file. Value range:
|
in_used | text | Specifies whether a resource has been allocated. The value can be Y or N. |
mapblock_location | text | Position of the extension in the map block. The format is (page_id, offset). |
head_file_id | integer | Segment header file ID. |
head_block_id | bigint | Page number of the segment header. |
usage_type | text | Extended usage type. The options are as follows:
|
remain_flag | text | Specifies whether it is a shrink residual extension. The value can be Y or N. |
special_data | integer | Special data section of the reverse pointer corresponding to an extent. |
ipblock_location | text | Position of the extended reverse pointer. The format is (block_id, offset). |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.

