Re: [GENERAL] Retrieving query results

Igor Korot <ikorot01@gmail.com>

From: Igor Korot <ikorot01@gmail.com>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Michael Paquier <michael.paquier@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, pgsql-general <pgsql-general@postgresql.org>
Date: 2025-12-17T17:42:41Z
Lists: pgsql-general
Thx for confirmation.


On Wed, Dec 17, 2025 at 12:38 AM Laurenz Albe <laurenz.albe@cybertec.at>
wrote:

> On Tue, 2025-12-16 at 21:26 -0800, Igor Korot wrote:
> > Is this now part of the main libpq codebase?
>
> Yes; you can find [1] and [2] in the commit log.
>
> Yours,
> Laurenz Albe
>
>
>  [1]: https://postgr.es/c/2e70d6b5e99b7e7b53336b1838f869bbea1b5024
>  [2]: https://postgr.es/c/6cbee65eee20c144bb4de169c6802f20e76785b0
>

Commits

  1. Doc: document libpq's restriction to INT_MAX rows in a PGresult.

  2. Teach libpq to detect integer overflow in the row count of a PGresult.