Updated on 2025-05-29 GMT+08:00

GS_GTT_ATTACHED_PIDS

GS_GTT_ATTACHED_PIDS is used to check which sessions are using global temporary tables on DNs by calling the gs_gtt_attached_pid() function.

Table 1 GS_GTT_ATTACHED_PIDS columns

Name

Type

Description

schemaname

name

Schema name.

tablename

name

Name of a global temporary table.

relid

oid

OID of a global temporary table.

pids

bigint

Session ID.

cn_session_ids

text[]

List of global session IDs on the CN in distributed mode.