From 1b57b8bfdcce805d00ffe4aef87f91521c03ca9b Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Wed, 26 Sep 2007 08:45:50 +0000
Subject: [PATCH] Document that libpq's PQntuples() might overflow.

---
 doc/src/sgml/libpq.sgml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index f98db479cd0..7aa142800e7 100644
--- a/doc/src/sgml/libpq.sgml
+++ b/doc/src/sgml/libpq.sgml
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.245 2007/09/14 14:54:25 momjian Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.246 2007/09/26 08:45:50 momjian Exp $ -->
 
 <chapter id="libpq">
  <title><application>libpq</application> - C Library</title>
@@ -2092,7 +2092,9 @@ PGresult *PQdescribePortal(PGconn *conn, const char *portalName);
 
      <listitem>
       <para>
-       Returns the number of rows (tuples) in the query result.
+       Returns the number of rows (tuples) in the query result.  Because
+       it returns an integer result, large result sets might overflow the
+       return value on 32-bit operating systems.
 
        <synopsis>
         int PQntuples(const PGresult *res);
-- 
GitLab