Updated on 2024-05-07 GMT+08:00

SESSION_MEMORY_RUNTIME

SESSION_MEMORY_RUNTIME displays information about memory usage of ongoing complex jobs executed by the current user.

Table 1 SESSION_MEMORY_RUNTIME columns

Name

Type

Description

datid

oid

OID of the database that this 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 is spilled to disks on all DNs.
  • All: Data is spilled to disks on all DNs.
  • [a:b]: The statement has been spilled to disks on a of b DNs.

query

text

Statement being executed.

top_mem_dn

text

Top N memory usage.