Updated on 2024-06-03 GMT+08:00

MY_PART_KEY_COLUMNS

MY_PART_KEY_COLUMNS displays information about the partition key columns of partitioned tables or partitioned indexes owned by the current user. This view can be accessed by all users. Only the information about the current user can be viewed. This view exists in both PG_CATALOG and SYS schema.

Table 1 MY_PART_KEY_COLUMNS columns

Name

Type

Description

name

character varying(128)

Name of a partitioned table or index.

object_type

character(5)

Object type.

  • Its value is table for a partitioned table.
  • Its value is index for a partitioned index.

column_name

character varying(4000)

Partition key column name of a partitioned table or index.

column_position

numeric

Position of a column in a partition.

collated_column_id

numeric

Not supported. Its value is NULL.