All Products
Search
Document Center

PolarDB:V$MYSTAT

Last Updated:Mar 28, 2026

V$MYSTAT is a dynamic performance view in PolarDB for PostgreSQL (Compatible with Oracle) that returns performance and resource usage statistics for the current session.

Columns

ColumnTypeDescription
SIDnumericThe unique ID of the current session.
STATISTIC#numericThe number of the statistic.
VALUEnumericThe accumulated value of a specific statistical metric since the start of the session.

Usage notes

  • Session scope: V$MYSTAT returns data only for the current connected session. Statistics accumulate from the moment the session starts.

  • Oracle compatibility: This view exposes three columns: SID, STATISTIC#, and VALUE.

See also