Skip to content

pdo_pgsql: document ATTR_PREFETCH lazy fetch, fix copyFromArray sig#5629

Open
philip wants to merge 1 commit into
php:masterfrom
philip:docs/pdo-pgsql-fetch-update
Open

pdo_pgsql: document ATTR_PREFETCH lazy fetch, fix copyFromArray sig#5629
philip wants to merge 1 commit into
php:masterfrom
philip:docs/pdo-pgsql-fetch-update

Conversation

@philip

@philip philip commented Jun 21, 2026

Copy link
Copy Markdown
Member

Document the PHP 8.5 lazy (single-row) fetch mode: add a PDO::ATTR_PREFETCH entry to the PDO_PGSQL constants describing the =0 toggle, its connection vs per-statement scope, and the single-active-statement caveat. Note the driver-specific behavior on the generic PDO::ATTR_PREFETCH entry.

Update Pdo\Pgsql::copyFromArray's rows parameter to array|Traversable in the synopsis, matching the changelog entry already added in #5626 and closes tasks noted in the PHP 8.5 Documentation Tracker

Behavior verified against PostgreSQL on PHP 8.5.7.

@philip philip requested a review from kamil-tekiela as a code owner June 21, 2026 00:11
@philip philip requested a review from jordikroon June 21, 2026 00:15
The PDO_PGSQL driver instead treats this attribute as a toggle: as of
PHP 8.5.0, a value of <literal>0</literal> enables lazy (single-row)
fetching. See
<link linkend="pdo-pgsql.constants.attr-prefetch"><constant>PDO::ATTR_PREFETCH</constant></link>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this doesn't need a <link>. In fact I feel this will render a duplicate anchor tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants