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

PG_GTT_ATTACHED_PIDS

PG_GTT_ATTACHED_PIDS is used to check which sessions are using global temporary tables by calling the pg_gtt_attached_pid() function. Data is inherited from a centralized global temporary table. In distributed mode, GS_GTT_ATTACHED_PIDS or GS_GLOBAL_GTT_ATTACHED_PIDS is recommended.

Table 1 PG_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[]

Thread PID list.

sessionids

bigint[]

Session ID list.