SPI bug. - Mailing list pgsql-hackers

From Tzahi Fadida
Subject SPI bug.
Date
Msg-id 000001c54d23$75adb680$0b00a8c0@llord
Whole thread Raw
Responses Re: SPI bug.
List pgsql-hackers
Hi,
While trying to determine if SPI_cursor_move can rewind
(and receiving a great help from the guys at the irc), we
found out that since the count parameter is int
and FETCH_ALL is LONG_MAX then setting
the count parameter to FETCH_ALL to rewind
will not work on 64bit systems.

On my pIII 32 bit system it works since int size=long size.

I am using 8.0.2 (i.e. the repositioning bug is already fixed here).

I think the solution can be either changing the FETCH_ALL to
INT_MAX or changing the interface parameter count and subsequent usages
to long.
(FETCH_ALL at parsenodes.h)

Regards,tzahi.

WARNING TO SPAMMERS:  see at
http://members.lycos.co.uk/my2nis/spamwarning.html




pgsql-hackers by date:

Previous
From: "Sergey E. Koposov"
Date:
Subject: Re: performance of bitmap scans in nested loop joins
Next
From: Christopher Browne
Date:
Subject: Re: Feature freeze date for 8.1