Skip to main content

Command Palette

Search for a command to run...

OpenGauss: Pg_gtt_attached_pid(relOid)

Updated
1 min read

pg_gtt_attached_pid(relOid)

Description: Displays all thread pids that are using the specified global temporary table.

Parameters: OID of the global temporary table.

Return value type: record

Example:

copy code openGauss=# select * from pg_gtt_attached_pid(74069);

relid | pid

-------+-----------------

74069 | 139648170456832

74069 | 139648123270912 (2 rows)