]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Doc: document libpq's restriction to INT_MAX rows in a PGresult.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Aug 2017 19:38:05 +0000 (15:38 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Aug 2017 19:38:46 +0000 (15:38 -0400)
commit2a82170a56cb5b7c8e8444d2089b15ba6492b102
tree9707ead384d412fb13d8f0f69467ff98d860cfe7
parenta07058a6d43b954c4b6b5dd41299febf9102bdfd
Doc: document libpq's restriction to INT_MAX rows in a PGresult.

As long as PQntuples, PQgetvalue, etc, use "int" for row numbers, we're
pretty much stuck with this limitation.  The documentation formerly stated
that the result of PQntuples "might overflow on 32-bit operating systems",
which is just nonsense: that's not where the overflow would happen, and
if you did reach an overflow it would not be on a 32-bit machine, because
you'd have OOM'd long since.

Discussion: https://postgr.es/m/CA+FnnTxyLWyjY1goewmJNxC==HQCCF4fKkoCTa9qR36oRAHDPw@mail.gmail.com
doc/src/sgml/libpq.sgml