pg_cursors
The pg_cursors view lists the currently available cursors.
Cursors can be defined in one of the following ways:
-
via the
DECLARESQL statement; -
via the
Bindmessage in the frontend/backend protocol; -
via the Server Programming Interface (SPI).
Greengage DB does not allow defining or accessing parallel retrieve cursors via SPI.
Cursors exist only for the duration of the transaction that defines them, unless they have been declared WITH HOLD.
Non-holdable cursors are only present in the view until the end of their creating transaction.
Greengage DB does not support holdable parallel retrieve cursors.
| Column | Type | Description |
|---|---|---|
name |
text |
The name of the cursor |
statement |
text |
The verbatim query string submitted to declare this cursor |
is_holdable |
boolean |
NOTE
Greengage DB does not support holdable parallel retrieve cursors, this value is always |
is_binary |
boolean |
|
is_scrollable |
boolean |
NOTE
Greengage DB does not support scrollable cursors, this value is always |
creation_time |
timestamptz |
The time at which the cursor was declared |