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

SESSION_MEMORY_RUNTIME

SESSION_MEMORY_RUNTIME displays information about memory usage of ongoing complex jobs executed by the current user, as described in Table 1.

Table 1 SESSION_MEMORY_RUNTIME columns

Name

Type

Description

datid

oid

OID of the database that the backend is connected to.

usename

name

Name of the user logged in to the backend.

pid

bigint

Backend thread ID.

start_time

timestamp with time zone

Time when the statement execution starts. For a stored procedure or function, the first query time is queried and does not change with the running of statements in the stored procedure.

min_peak_memory

integer

Minimum peak memory of the statement among all DNs (unit: MB).

max_peak_memory

integer

Maximum peak memory of the statement among all DNs (unit: MB).

spill_info

text

Statement spill information on all DNs.
  • None: No data has been flushed to disks on all DNs.
  • All: Data has been flushed to disks on all DNs.
  • [a:b]: Data has been flushed to disks on a of b DNs.

query

text

Statement being executed.

top_mem_dn

text

Top N memory usage.