Skip to main content

Module monitor

Module monitor 

Source
Expand description

Monitoring tools: sessions and locks, statement statistics, cumulative statistics, table usage and replication.

Structs§

Visibility
Whether the connected role may read other sessions’ statement text, and the role’s name.

Functions§

bool_text
bounded
An optional integer argument with its default, checked against an inclusive range.
camel
A snake_case column name as a camelCase result key.
catalog
Monitoring tools with their toolset tag.
cut_chars
The first limit characters of the text, and whether any were cut.
dispatch
Runs the named tool, or returns None when the name is not one of this module’s tools.
fail
Ends a tool call with a failure that names its database when it is known.
first_object
The first row of a result as an object; an empty object when there is none.
flag
An optional boolean argument; absent means false.
flag_of
Reads a boolean column of a row; absent or null means false.
hidden_text_note
The note that explains hidden statement text and how to show it.
next_cursor
The cursor for the page after the one that starts at offset.
parse_offset
The offset encoded in an o:<offset> cursor; absent means the first page.
present_columns
The candidate columns that the relation has on this server, in candidate order.
select_items
alias.column AS "camelCase" for each column; byte counts are cast to bigint.
shape_query
Sets a row’s query to its visible text, masked for secrets, cut to chars; queryTruncated says whether it was cut.
text_visibility
visible_text
Maps PostgreSQL’s placeholder for another role’s statement text to None.
wide_rows
Runs internal SQL with the wide value and response limits and encodes its rows.