"Pavel Stehule" <pavel(dot)stehule(at)hotmail(dot)com> writes:
> I need new function
> SPI_cursor_fetch_with_direction(Portal portal, int direction, long count)
> where is possible set direction of fetch statement.
Huh? SPI_cursor_fetch already lets you specify forward or backward.
regards, tom lane