[php-src] PR #15750: Fix GH-15287: Pdo\PgSql lacks a lazy fetch
| From: | outtersg | Date: | Wed, 04 Sep 2024 21:07:46 +0000 |
| Subject: | [php-src] PR #15750: Fix GH-15287: Pdo\PgSql lacks a lazy fetch | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28406@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15750
Author: outtersg
Make
Pdo\PgSql accept Pdo::setAttribute(PDO::ATTR_PREFETCH, 0) to enter
libpq's [single row mode](https://www.postgresql.org/docs/current/libpq-single-row-mode.html).
This avoids storing the whole result set in memory before being able to call the first
fetch().
**Not ready yet** as I struggle on query() (details on first comment).