Updated on 2025-12-12 GMT+08:00

PV_SESSION_MEMORY

PV_SESSION_MEMORY displays statistics about memory usage at the session level in the unit of MB, including all the memory allocated to Postgres and Stream threads on DNs for jobs currently executed by users.

Table 1 PV_SESSION_MEMORY columns

Column

Type

Description

sessid

Text

Thread start time + Thread ID + Node name (string format: timestamp.threadid.nodename)

NOTE:

In cluster versions earlier than 8.2.1, sessid contains only the thread start time and thread ID. In cluster versions 8.2.1 and later, the node name is added to sessid, which is in the following format: timestamp.threadid.nodename.

init_mem

Integer

Memory allocated to the currently executed task before the task enters the executor, in MB.

used_mem

Integer

Memory allocated to the currently executed task, in MB.

peak_mem

Integer

Peak memory allocated to the currently executed task, in MB.