skip to main content
Drivers for 32-Bit and 64-Bit Platforms : The PostgreSQL Wire Protocol Driver : Connection Option Descriptions for PostgreSQL Wire Protocol : 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. PostgreSQL does not offer a true row identifier column; the driver instead uses a hidden system column provided by the PostgreSQL database, ctid. Because the database might reassign the ID 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), the driver uses a combination of every non-LOB column in the Select list and the ctid ahidden column 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), the driver uses the ctid hidden system column.

Notes

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

Default

0 (RowID) Columns

GUI Tab

Advanced tab