Re: PQntuples return type - Mailing list pgsql-general

From Bruce Momjian
Subject Re: PQntuples return type
Date
Msg-id 200709270557.l8R5vCX03416@momjian.us
Whole thread Raw
In response to Re: PQntuples return type  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Tom Lane wrote:
> >> This is silly.  Have you forgotten that the max number of columns is
> >> constrained to 1600 on the backend side?
>
> > Uh, this is the number of returned rows, right?  How does this relate to
> > columns?
>
> Duh, brain fade on my part, sorry.  Still, I suspect the return type of
> PQntuples would be the very least of the changes we'd need to make to
> support resultsets > 2G rows.  And I would not advise changing it to an
> unsigned type, since that could cause hard-to-find breakage in
> comparison logic in applications.

Uh, yea.  Not sure if anyone has ever tried.  At least we have a marker
in the docs now that it might be a problem.  ;-)

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-general by date:

Previous
From: "சிவகுமார் மா"
Date:
Subject: df output change (in psql) after 8.2 version
Next
From: Alban Hertroys
Date:
Subject: Re: datestyle question