On 9/3/16 1:30 PM, Tom Lane wrote:
Or we could add something like "But first, we must deal with the special
case of reversing direction after reaching EOF."

I'm working on that, but one thing isn't clear to me... why do we only skip past the last tuple if (!node->leader->eof_cte)? Even if we've hit the end of the underlying node, the tuplestore could still return data, and AFAICT we would still need to move past the last item in the tuplestore, no?
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)   mobile: 512-569-9461


--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to