Search Postgresql Archives

Re: PQntuples return type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bruce Momjian <bruce@xxxxxxxxxx> writes:
> Greg Sabino Mullane wrote:
>> There may be some other safeguards in place I did not see to prevent this, 
>> but I don't see a reason why we shouldn't use unsigned int or 
>> unsigned long int here, both for ntups and the return value of the 
>> function.

> On second thought, I have at least updated the function documentation:

>        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.

This is silly.  Have you forgotten that the max number of columns is
constrained to 1600 on the backend side?

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux