PG_GTT_ATTACHED_PIDSPG_GTT_ATTACHED_PIDS checks which sessions are using global temporary tables by calling the pg_get_attached_pid function.Table 1 PG_GTT_ATTACHED_PIDS columnsNameTypeDescriptionschemanamenameSchema name.tablenamenameName of a global temporary table.relidoidOID of a global temporary table.pidsbigint[]Thread PID list.