skip to main content
The Connect XE Drivers : The Greenplum Wire Protocol Driver : Greenplum Connection Option Descriptions : Keyset Cursor Options
 

Try DataDirect Drivers Now
Keyset Cursor Options

Attribute

KeysetCursorOptions (KCO)

Purpose

Determines which columns are used to comprise the keyset that the driver uses to create the initial keyset on which cursor operations are based. Greenplum does not offer a true row identifier column; the driver instead uses two hidden system columns provided by the Greenplum database, ctid and gp_segment_id. Because the database might reassign these IDs following a Vacuum operation, the driver can be configured to also include other columns to help ensure that data integrity is maintained.

Valid Values

0 | 1

Behavior

If set to 1 - RowID and Searchable Columns (Enabled), the driver uses a combination of every non-LOB column in the Select list and the ctid and gp_segment_id hidden columns to build the keyset. By adding other Select list fields to the keyset, the driver is able to indicate the row cannot be found if the IDs change following a Vacuum operation.
If set to 0 - RowID Columns (Disabled), the driver uses the ctid and gp_segment_id hidden system columns.

Notes

*This option has no effect unless the EnableKeysetCursors (EKC) connection option is enabled.

Default

0

GUI Tab

Advanced tab