1. Dynamic (non-buffered cursors) in PostgreSQL To avoid big memory consuming, we will need to use backend-side (native) cursors with "DECLARE CURSOR" statement. Otherwise KDbCursor needs to be buffered. https://archives.postgresql.org/pgsql-interfaces/2000-09/msg00082.php