Menu
Amazon Redshift
Database Developer Guide (API Version 2012-12-01)

STV_ACTIVE_CURSORS

STV_ACTIVE_CURSORS displays details for currently open cursors. For more information, see DECLARE.

STV_ACTIVE_CURSORS is visible to all users. Superusers can see all rows; regular users can see only their own data. For more information, see Visibility of Data in System Tables and Views. A user can only view cursors opened by that user. A superuser can view all cursors.

Table Columns

Column Name Data Type Description
userid integer ID of user who generated entry.
name character(256) Cursor name.
xid bigint Transaction context.
pid integer Leader process running the query.
starttime timestamp Time when the cursor was declared.
row_count bigint Number of rows in the cursor result set.
byte_count bigint Number of bytes in the cursor result set.
fetched_rows bigint Number of rows currently fetched from the cursor result set.

On this page: