Updated on 2026-10-21 GMT+08:00

GS_SUBPARTITION_TEMPLATE

GS_SUBPARTITION_TEMPLATE records information about subpartition templates.

Table 1 GS_SUBPARTITION_TEMPLATE columns

Name

Type

Description

table_oid

OID

OID of the base table to which a template belongs.

position

Integer

Partition number defined in the template, starting from 1.

spart_name

Name

Partition name defined in the template.

spart_tablespace

OID

Partition tablespace OID defined in the template.

spart_boundaries

Text[]

Partition boundary defined in the template. For range partitioning, it is defined as an upper limit. For list partitioning, it is defined as a value list. For hash partitioning, it is defined as a hash remainder.