PostgreSQL Query Cursor for Node.js

JSON →
library 2.19.0 ·javascript
verified May 27, 2026

pg-cursor is a specialized extension for the `node-postgres` library, enabling Node.js applications to utilize PostgreSQL result cursors. This functionality allows developers to fetch large query results incrementally in manageable chunks, effectively preventing out-of-memory issues that can arise when loading massive datasets into memory all at once. The library is currently at version 2.19.0 and is actively maintained as part of the broader `node-postgres` ecosystem, with updates typically released to ensure compatibility, address bugs, or introduce minor enhancements. Its primary differentiator lies in providing an efficient, streaming approach to data retrieval from PostgreSQL, which is crucial for high-performance applications dealing with extensive database tables. A key technical requirement is its exclusive compatibility with the pure JavaScript `pg` client, explicitly stating it does not support native PostgreSQL bindings.

total hits 19
actors 8 distinct systems
last hit 4d ago AhrefsBot
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇳🇱 Netherlands · 🇫🇷 France